summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/versionfinder/default.nix
blob: 8d9a8d15036eb5107699c1a0278154140a0023ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  lib,
  backoff,
  buildPythonPackage,
  fetchFromGitHub,
  gitpython,
  pip,
  pytestCheckHook,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "versionfinder";
  version = "1.1.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jantman";
    repo = "versionfinder";
    rev = version;
    hash = "sha256-aa2bRGn8Hn7gpEMUM7byh1qZVsqvJeMXomnwCj2Xu5o=";
  };

  build-system = [ setuptools ];

  dependencies = [
    gitpython
    backoff
  ];

  nativeCheckInputs = [
    pip
    pytestCheckHook
    requests
  ];

  disabledTestPaths = [
    # Acceptance tests use the network
    "versionfinder/tests/test_acceptance.py"
  ];

  disabledTests = [
    # Tests are out-dated
    "TestFindPipInfo"
  ];

  pythonImportsCheck = [ "versionfinder" ];

  meta = {
    description = "Find the version of another package, whether installed via pip, setuptools or git";
    homepage = "https://github.com/jantman/versionfinder";
    changelog = "https://github.com/jantman/versionfinder/blob/${version}/CHANGES.rst";
    license = lib.licenses.agpl3Plus;
  };
}