diff --git a/pkgs/development/python-modules/unicrypto/default.nix b/pkgs/development/python-modules/unicrypto/default.nix index 2c1b9c4af3b7..774a43c98b91 100644 --- a/pkgs/development/python-modules/unicrypto/default.nix +++ b/pkgs/development/python-modules/unicrypto/default.nix @@ -4,15 +4,13 @@ fetchFromGitHub, pycryptodome, pycryptodomex, - pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "unicrypto"; version = "0.0.12"; - format = "setuptools"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "skelsec"; @@ -21,7 +19,9 @@ buildPythonPackage rec { hash = "sha256-RYwovFMalBNDPDEVjQ/8/N7DkOMiyeEQ5ESdgCK8RW8="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ pycryptodome pycryptodomex ]; @@ -34,8 +34,8 @@ buildPythonPackage rec { meta = with lib; { description = "Unified interface for cryptographic libraries"; homepage = "https://github.com/skelsec/unicrypto"; - changelog = "https://github.com/skelsec/unicrypto/releases/tag/${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/skelsec/unicrypto/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }