1{ lib 2, buildPythonPackage 3, cryptography 4, fetchPypi 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "winacl"; 10 version = "0.1.5"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-8/dLFbzn7ARuJ27MA8LSMCykBdEntYQXuOyj/yqjaWE="; 18 }; 19 20 propagatedBuildInputs = [ 21 cryptography 22 ]; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace "cryptography>=38.0.1" "cryptography" 27 ''; 28 29 # Project doesn't have tests 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "winacl" 34 ]; 35 36 meta = with lib; { 37 description = "Python module for ACL/ACE/Security descriptor manipulation"; 38 homepage = "https://github.com/skelsec/winacl"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}