summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/packvers/default.nix
blob: b7181bdceda3db86f77dd1195b7146443b2d2d09 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pretend,
  pyparsing,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "packvers";
  version = "21.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nexB";
    repo = "packvers";
    tag = version;
    hash = "sha256-nCSYL0g7mXi9pGFt24pOXbmmYsaRuB+rRZrygf8DTLE=";
  };

  build-system = [ setuptools ];

  dependencies = [ pyparsing ];

  nativeCheckInputs = [
    pretend
    pytestCheckHook
  ];

  pythonImportsCheck = [ "packvers" ];

  disabledTests = [
    # Failed: DID NOT RAISE <class 'packvers.requirements.InvalidRequirement'>
    "test_invalid_file_urls"
  ];

  meta = {
    description = "Module for version handling of modules";
    homepage = "https://github.com/aboutcode-org/packvers";
    changelog = "https://github.com/nexB/packvers/blob/${version}/CHANGELOG.rst";
    license = with lib.licenses; [
      asl20 # and
      bsd2
    ];
    maintainers = with lib.maintainers; [ fab ];
  };
}