1{ lib, buildPythonPackage, fetchFromGitHub, GitPython, pytestCheckHook, backoff, requests }: 2 3buildPythonPackage rec { 4 pname = "versionfinder"; 5 version = "1.1.1"; 6 7 src = fetchFromGitHub { 8 owner = "jantman"; 9 repo = pname; 10 rev = version; 11 sha256 = "16mvjwyhmw39l8by69dgr9b9jnl7yav36523lkh7w7pwd529pbb9"; 12 }; 13 14 propagatedBuildInputs = [ 15 GitPython 16 backoff 17 ]; 18 19 checkInputs = [ 20 pytestCheckHook 21 requests 22 ]; 23 24 disabledTestPaths = [ 25 # acceptance tests use the network 26 "versionfinder/tests/test_acceptance.py" 27 ]; 28 29 pythonImportsCheck = [ "versionfinder" ]; 30 31 meta = with lib; { 32 description = "Find the version of another package, whether installed via pip, setuptools or git"; 33 homepage = "https://github.com/jantman/versionfinder"; 34 license = licenses.agpl3Plus; 35 maintainers = with maintainers; [ zakame ]; 36 }; 37}