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