diff --git a/pkgs/development/python-modules/pylibacl/0.5.nix b/pkgs/development/python-modules/pylibacl/0.5.nix new file mode 100644 index 000000000000..284a795b4c22 --- /dev/null +++ b/pkgs/development/python-modules/pylibacl/0.5.nix @@ -0,0 +1,26 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pkgs +}: + +buildPythonPackage rec { + pname = "pylibacl"; + version = "0.5.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0drvxb21y7p0aikcv3jx90vdcjk96kibf9x8qgxic2prxxd3f3q6"; + }; + + # ERROR: testExtended (tests.test_acls.AclExtensions) + # IOError: [Errno 0] Error + doCheck = false; + + buildInputs = with pkgs; [ acl ]; + + meta = { + 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"; + license = lib.licenses.lgpl21Plus; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 033b9e1f7c6f..c6770420c3ff 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5245,7 +5245,10 @@ in { pylev = callPackage ../development/python-modules/pylev { }; - pylibacl = callPackage ../development/python-modules/pylibacl { }; + pylibacl = if isPy3k then + callPackage ../development/python-modules/pylibacl { } + else + callPackage ../development/python-modules/pylibacl/0.5.nix { }; pylibconfig2 = callPackage ../development/python-modules/pylibconfig2 { };