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