From 7d6a5def69846bd83ea13efaec3ad2f2dad28dbe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Jan 2024 11:24:43 +0100 Subject: [PATCH] python311Packages.pip-api: refactor --- .../python-modules/pip-api/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pip-api/default.nix b/pkgs/development/python-modules/pip-api/default.nix index 48edbf2480dc..b8a89ee623a1 100644 --- a/pkgs/development/python-modules/pip-api/default.nix +++ b/pkgs/development/python-modules/pip-api/default.nix @@ -1,25 +1,32 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pip , pretend , pytestCheckHook , pythonOlder +, setuptools , virtualenv }: buildPythonPackage rec { pname = "pip-api"; version = "0.0.30"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-oF3yx6qbcVc3S89Cc1RCAaDHuuYKnGW8+E85We84lvM="; + src = fetchFromGitHub { + owner = "di"; + repo = "pip-api"; + rev = "refs/tags/${version}"; + hash = "sha256-vl3CeVE0QdX2LsknpNg79s9IT0Qux63BreSXYLoDEcQ="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ pip ]; @@ -46,6 +53,7 @@ buildPythonPackage rec { meta = with lib; { description = "Importable pip API"; homepage = "https://github.com/di/pip-api"; + changelog = "https://github.com/di/pip-api/blob/${version}/CHANGELOG"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };