diff --git a/pkgs/development/python-modules/enturclient/default.nix b/pkgs/development/python-modules/enturclient/default.nix index dc477173d6ef..ad997121e576 100644 --- a/pkgs/development/python-modules/enturclient/default.nix +++ b/pkgs/development/python-modules/enturclient/default.nix @@ -8,7 +8,7 @@ unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "enturclient"; version = "0.3.0"; pyproject = true; @@ -16,10 +16,12 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "hfurubotten"; repo = "enturclient"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-83ui1BYqiRr+IwaJeXNppMnOTQCF9uJD5Kus93CDsUA="; }; + pythonRelaxDeps = [ "async_timeout" ]; + build-system = [ poetry-core ]; dependencies = [ @@ -27,24 +29,17 @@ buildPythonPackage rec { async-timeout ]; - pythonRelaxDeps = [ - "async_timeout" - ]; - pythonImportsCheck = [ "enturclient" ]; - nativeCheckInputs = [ - unittestCheckHook - ]; + nativeCheckInputs = [ unittestCheckHook ]; - unittestFlagsArray = [ - "tests/dto/" - ]; + unittestFlagsArray = [ "tests/dto/" ]; meta = { description = "Python library for interacting with the Entur.org API"; homepage = "https://github.com/hfurubotten/enturclient"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/hfurubotten/enturclient/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})