1{ 2 lib, 3 backoff, 4 buildPythonPackage, 5 fetchFromGitHub, 6 gitpython, 7 pip, 8 pytestCheckHook, 9 pythonOlder, 10 requests, 11}: 12 13buildPythonPackage rec { 14 pname = "versionfinder"; 15 version = "1.1.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "jantman"; 22 repo = pname; 23 rev = version; 24 sha256 = "16mvjwyhmw39l8by69dgr9b9jnl7yav36523lkh7w7pwd529pbb9"; 25 }; 26 27 propagatedBuildInputs = [ 28 gitpython 29 backoff 30 ]; 31 32 nativeCheckInputs = [ 33 pip 34 pytestCheckHook 35 requests 36 ]; 37 38 disabledTestPaths = [ 39 # Acceptance tests use the network 40 "versionfinder/tests/test_acceptance.py" 41 ]; 42 43 disabledTests = [ 44 # Tests are out-dated 45 "TestFindPipInfo" 46 ]; 47 48 pythonImportsCheck = [ "versionfinder" ]; 49 50 meta = with lib; { 51 description = "Find the version of another package, whether installed via pip, setuptools or git"; 52 homepage = "https://github.com/jantman/versionfinder"; 53 changelog = "https://github.com/jantman/versionfinder/blob/${version}/CHANGES.rst"; 54 license = licenses.agpl3Plus; 55 maintainers = with maintainers; [ zakame ]; 56 }; 57}