diff --git a/pkgs/development/python-modules/pip-api/default.nix b/pkgs/development/python-modules/pip-api/default.nix index c3653d0f5af4..5d4f315f5a1e 100644 --- a/pkgs/development/python-modules/pip-api/default.nix +++ b/pkgs/development/python-modules/pip-api/default.nix @@ -9,7 +9,7 @@ virtualenv, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pip-api"; version = "0.0.34"; pyproject = true; @@ -17,13 +17,13 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "di"; repo = "pip-api"; - tag = version; + tag = "v${finalAttrs.version}"; hash = "sha256-nmCP4hp+BsD80OBjerOu+QTBBExGHvn/v19od4V3ncI="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ pip ]; + dependencies = [ pip ]; nativeCheckInputs = [ pretend @@ -40,13 +40,15 @@ buildPythonPackage rec { "test_invoke_install" "test_invoke_uninstall" "test_isolation" + # Tests fails on hydra + "test_parse_requirements_editable" ]; meta = { description = "Importable pip API"; - homepage = "https://github.com/di/pip-api"; - changelog = "https://github.com/di/pip-api/blob/${version}/CHANGELOG"; - license = with lib.licenses; [ mit ]; + homepage = "https://github.com/di/pip-api/"; + changelog = "https://github.com/di/pip-api/blob/${finalAttrs.src.tag}/CHANGELOG"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})