1{ lib
2, buildPythonPackage
3, fetchPypi
4, pip
5, pretend
6, pytestCheckHook
7, pythonOlder
8, virtualenv
9}:
10
11buildPythonPackage rec {
12 pname = "pip-api";
13 version = "0.0.30";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-oF3yx6qbcVc3S89Cc1RCAaDHuuYKnGW8+E85We84lvM=";
21 };
22
23 propagatedBuildInputs = [
24 pip
25 ];
26
27 checkInputs = [
28 pretend
29 pytestCheckHook
30 virtualenv
31 ];
32
33 pythonImportsCheck = [
34 "pip_api"
35 ];
36
37 disabledTests = [
38 "test_hash"
39 "test_hash_default_algorithm_is_256"
40 "test_installed_distributions"
41 "test_invoke_install"
42 "test_invoke_uninstall"
43 "test_isolation"
44 ];
45
46 meta = with lib; {
47 description = "Importable pip API";
48 homepage = "https://github.com/di/pip-api";
49 license = with licenses; [ mit ];
50 maintainers = with maintainers; [ fab ];
51 };
52}