diff --git a/pkgs/development/python-modules/certipy/default.nix b/pkgs/development/python-modules/certipy/default.nix index 908edc32db69..911de68d4182 100644 --- a/pkgs/development/python-modules/certipy/default.nix +++ b/pkgs/development/python-modules/certipy/default.nix @@ -1,29 +1,44 @@ { lib, buildPythonPackage, + cryptography, fetchPypi, - pyopenssl, + flask, + pytestCheckHook, + pythonOlder, + requests, + setuptools-scm, }: buildPythonPackage rec { pname = "certipy"; - version = "0.1.3"; - format = "setuptools"; + version = "0.2.1"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "0n980gqpzh0fm58h3i4mi2i10wgj606lscm1r5sk60vbf6vh8mv9"; + hash = "sha256-DA6nslJItC+5MPMBc6eMAp5rpn4u+VmMpEcNiXXJy7Y="; }; - propagatedBuildInputs = [ pyopenssl ]; + build-system = [ setuptools-scm ]; - doCheck = false; # no tests were included + dependencies = [ cryptography ]; + + nativeCheckInputs = [ + flask + pytestCheckHook + requests + ]; + + pythonImportsCheck = [ "certipy" ]; meta = with lib; { + description = "Utility to create and sign CAs and certificates"; homepage = "https://github.com/LLNL/certipy"; - description = "wrapper for pyOpenSSL"; - mainProgram = "certipy"; license = licenses.bsd3; maintainers = with maintainers; [ isgy ]; + mainProgram = "certipy"; }; }