2022-03-28 12:31:50 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pip
|
|
|
|
, pretend
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, virtualenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pip-api";
|
2022-07-21 10:49:37 +01:00
|
|
|
version = "0.0.30";
|
2022-03-28 12:31:50 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-07-21 10:49:37 +01:00
|
|
|
hash = "sha256-oF3yx6qbcVc3S89Cc1RCAaDHuuYKnGW8+E85We84lvM=";
|
2022-03-28 12:31:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pip
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pretend
|
|
|
|
pytestCheckHook
|
|
|
|
virtualenv
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pip_api"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_hash"
|
|
|
|
"test_hash_default_algorithm_is_256"
|
|
|
|
"test_installed_distributions"
|
|
|
|
"test_invoke_install"
|
|
|
|
"test_invoke_uninstall"
|
|
|
|
"test_isolation"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Importable pip API";
|
|
|
|
homepage = "https://github.com/di/pip-api";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|