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

buildPythonPackage rec {
  pname = "pkginfo2";
  version = "30.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nexB";
    repo = "pkginfo2";
    tag = "v${version}";
    hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "pkginfo2" ];

  disabledTests = [
    # AssertionError
    "test_ctor_w_path"
  ];

  meta = {
    description = "Query metadatdata from sdists, bdists or installed packages";
    homepage = "https://github.com/nexB/pkginfo2";
    changelog = "https://github.com/aboutcode-org/pkginfo2/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "pkginfo2";
  };
}