nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pip,
6 pretend,
7 pytestCheckHook,
8 setuptools,
9 virtualenv,
10}:
11
12buildPythonPackage rec {
13 pname = "pip-api";
14 version = "0.0.34";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "di";
19 repo = "pip-api";
20 tag = version;
21 hash = "sha256-nmCP4hp+BsD80OBjerOu+QTBBExGHvn/v19od4V3ncI=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ pip ];
27
28 nativeCheckInputs = [
29 pretend
30 pytestCheckHook
31 virtualenv
32 ];
33
34 pythonImportsCheck = [ "pip_api" ];
35
36 disabledTests = [
37 "test_hash"
38 "test_hash_default_algorithm_is_256"
39 "test_installed_distributions"
40 "test_invoke_install"
41 "test_invoke_uninstall"
42 "test_isolation"
43 ];
44
45 meta = {
46 description = "Importable pip API";
47 homepage = "https://github.com/di/pip-api";
48 changelog = "https://github.com/di/pip-api/blob/${version}/CHANGELOG";
49 license = with lib.licenses; [ mit ];
50 maintainers = with lib.maintainers; [ fab ];
51 };
52}