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