Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 python3, 5 fetchFromGitHub, 6}: 7 8python3.pkgs.buildPythonApplication rec { 9 pname = "donpapi"; 10 version = "1.2.0"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "login-securite"; 15 repo = "DonPAPI"; 16 tag = "V${version}"; 17 hash = "sha256-60aGnsr36X3mf91nH9ud0xyLBqKgzZ4ALucrLGpAuzQ="; 18 }; 19 20 pythonRelaxDeps = [ 21 "cryptography" 22 "impacket" 23 "pyasn1" 24 ]; 25 26 build-system = with python3.pkgs; [ poetry-core ]; 27 28 dependencies = with python3.pkgs; [ 29 cryptography 30 impacket 31 lnkparse3 32 pyasn1 33 pyjwt 34 setuptools 35 ]; 36 37 # Project has no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ "donpapi" ]; 41 42 meta = with lib; { 43 description = "Tool for dumping DPAPI credentials remotely"; 44 homepage = "https://github.com/login-securite/DonPAPI"; 45 changelog = "https://github.com/login-securite/DonPAPI/releases/tag/V${src.tag}"; 46 license = licenses.gpl3Only; 47 maintainers = with maintainers; [ fab ]; 48 mainProgram = "donpapi"; 49 broken = stdenv.hostPlatform.isDarwin; 50 }; 51}