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