python2.pkgs.pylibacl: init at 0.5.4
commite2f4d626ec480b322682b4245d47ebccf8ff81b2
authorOrivej Desh <orivej@gmx.fr>
dateSun 6 Dec 2020, 23:19 (6 years ago)
parent1c0e912
pkgs/development/python-modules/pylibacl/0.5.nixnew file+26
@@ -0,0 +1,26 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pkgs
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "pylibacl";
9+ version = "0.5.4";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "0drvxb21y7p0aikcv3jx90vdcjk96kibf9x8qgxic2prxxd3f3q6";
14+ };
15+
16+ # ERROR: testExtended (tests.test_acls.AclExtensions)
17+ # IOError: [Errno 0] Error
18+ doCheck = false;
19+
20+ buildInputs = with pkgs; [ acl ];
21+
22+ meta = {
23+ description = "A Python extension module for POSIX ACLs, it can be used to query, list, add, and remove ACLs from files and directories under operating systems that support them";
24+ license = lib.licenses.lgpl21Plus;
25+ };
26+}
pkgs/top-level/python-packages.nix+4−1
@@ -5245,7 +5245,10 @@ in {
52455245
52465246 pylev = callPackage ../development/python-modules/pylev { };
52475247
5248− pylibacl = callPackage ../development/python-modules/pylibacl { };
5248+ pylibacl = if isPy3k then
5249+ callPackage ../development/python-modules/pylibacl { }
5250+ else
5251+ callPackage ../development/python-modules/pylibacl/0.5.nix { };
52495252
52505253 pylibconfig2 = callPackage ../development/python-modules/pylibconfig2 { };
52515254