nixpkgs-suyu/pkgs/development/python-modules/pip-api/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

52 lines
906 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pip
, pretend
, pytestCheckHook
, pythonOlder
, virtualenv
}:
buildPythonPackage rec {
pname = "pip-api";
version = "0.0.30";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-oF3yx6qbcVc3S89Cc1RCAaDHuuYKnGW8+E85We84lvM=";
};
propagatedBuildInputs = [
pip
];
nativeCheckInputs = [
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 ];
};
}