| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 |
|
| 26 | (define-module (gnu packages acl)
|
| 27 | #:use-module (guix licenses)
|
| 28 | #:use-module (gnu packages attr)
|
| 29 | #:use-module (gnu packages base)
|
| 30 | #:use-module (gnu packages check)
|
| 31 | #:use-module (gnu packages gettext)
|
| 32 | #:use-module (gnu packages perl)
|
| 33 | #:use-module (gnu packages python-build)
|
| 34 | #:use-module (guix packages)
|
| 35 | #:use-module (guix download)
|
| 36 | #:use-module (guix gexp)
|
| 37 | #:use-module (gnu packages)
|
| 38 | #:use-module (guix build-system gnu)
|
| 39 | #:use-module (guix build-system pyproject)
|
| 40 | #:use-module (guix utils))
|
| 41 |
|
| 42 | (define-public acl
|
| 43 | (package
|
| 44 | (name "acl")
|
| 45 | (version "2.3.1")
|
| 46 | (source
|
| 47 | (origin
|
| 48 | (method url-fetch)
|
| 49 | (uri (string-append "mirror://savannah/acl/acl-"
|
| 50 | version ".tar.gz"))
|
| 51 | (sha256
|
| 52 | (base32
|
| 53 | "1bqi7hj0xkpivwg7lx5cv3yvs9ks1i6azvpgbvfpzcq1i736233n"))))
|
| 54 | (build-system gnu-build-system)
|
| 55 | (arguments
|
| 56 | `(#:modules ((ice-9 ftw)
|
| 57 | ,@%default-gnu-modules)
|
| 58 | #:configure-flags '("--disable-static")
|
| 59 | #:tests? ,(not (or (%current-target-system)
|
| 60 | (target-hurd?)))
|
| 61 | #:phases
|
| 62 | (modify-phases %standard-phases
|
| 63 | |
| 64 | |
| 65 | (add-after 'unpack 'ensure-no-mtimes-pre-1980
|
| 66 | (lambda _
|
| 67 | (let ((early-1980 315619200)) |
| 68 | (ftw "." (lambda (file stat flag)
|
| 69 | (unless (<= early-1980 (stat:mtime stat))
|
| 70 | (utime file early-1980 early-1980))
|
| 71 | #t)))))
|
| 72 | (add-after 'build 'patch-exec-bin-sh
|
| 73 | (lambda _
|
| 74 | (substitute* "test/run"
|
| 75 | (("/bin/sh") (which "sh")))))
|
| 76 | (add-before 'check 'patch-tests
|
| 77 | (lambda _
|
| 78 | |
| 79 | |
| 80 | (substitute* "test/sbits-restore.test"
|
| 81 | (("\\| sed.*'") ""))
|
| 82 | |
| 83 | |
| 84 | (substitute* "Makefile.in"
|
| 85 | ((".*test/misc\\.test.*") "")
|
| 86 | ((".*test/cp\\.test.*") "")
|
| 87 | ((".*test/setfacl-X\\.test.*") "")))))))
|
| 88 | (inputs (list attr))
|
| 89 | (native-inputs (list gettext-minimal perl))
|
| 90 | (home-page "https://savannah.nongnu.org/projects/acl")
|
| 91 | (synopsis
|
| 92 | "Library and tools for manipulating access control lists")
|
| 93 | (description
|
| 94 | "Library and tools for manipulating access control lists.")
|
| 95 | (license (list gpl2+ lgpl2.1+))))
|
| 96 |
|
| 97 | (define-public python-pylibacl
|
| 98 | (package
|
| 99 | (name "python-pylibacl")
|
| 100 | (version "0.7.3")
|
| 101 | (source
|
| 102 | (origin
|
| 103 | (method url-fetch)
|
| 104 | (uri (pypi-uri "pylibacl" version))
|
| 105 | (sha256
|
| 106 | (base32 "08pr5cbipij3j591bihh72r5h14lyrspy24qwmfjsn0c1rcgp7wx"))))
|
| 107 | (build-system pyproject-build-system)
|
| 108 | (arguments
|
| 109 | (list
|
| 110 | #:phases
|
| 111 | #~(modify-phases %standard-phases
|
| 112 | (add-after 'unpack 'disable-tests
|
| 113 | (lambda* (#:key outputs inputs #:allow-other-keys)
|
| 114 | |
| 115 | |
| 116 | (substitute* "tests/test_acls.py"
|
| 117 | (("( *)def test_applyto(_extended(_mixed)?)?" match indent)
|
| 118 | (string-append indent "@pytest.mark.skip(reason=\"guix\")\n"
|
| 119 | match))))))))
|
| 120 | (inputs (list acl))
|
| 121 | (native-inputs (list python-pytest python-setuptools))
|
| 122 | (home-page "https://pylibacl.k1024.org/")
|
| 123 | (synopsis "POSIX.1e @acronym{ACLs, access control lists} for Python")
|
| 124 | (description
|
| 125 | "This Python extension module manipulates the POSIX.1e @acronym{ACLs,
|
| 126 | Access Control Lists} available on many file systems. These allow more
|
| 127 | fine-grained access control than traditional user/group permissions.")
|
| 128 | (license lgpl2.1+)))
|