Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / winacl / default.nix
blobab27147d6519cb96cea45fd939d775697ecb2044
1 { lib
2 , buildPythonPackage
3 , cryptography
4 , fetchPypi
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "winacl";
10   version = "0.1.8";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchPypi {
16     inherit pname version;
17     hash = "sha256-RCcaMCVi3lFin2jvFUDUDzom57wBc2RrAaZ3nO2tZEw=";
18   };
20   propagatedBuildInputs = [
21     cryptography
22   ];
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace "cryptography>=38.0.1" "cryptography"
27   '';
29   # Project doesn't have tests
30   doCheck = false;
32   pythonImportsCheck = [
33     "winacl"
34   ];
36   meta = with lib; {
37     description = "Python module for ACL/ACE/Security descriptor manipulation";
38     homepage = "https://github.com/skelsec/winacl";
39     changelog = "https://github.com/skelsec/winacl/releases/tag/${version}";
40     license = with licenses; [ mit ];
41     maintainers = with maintainers; [ fab ];
42   };