about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/check-manifest/default.nix
blob: 1533329d5572e5b1316a6a48ee85e54494fbe8f3 (plain) (blame)
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
57
58
{ lib
, breezy
, build
, buildPythonPackage
, fetchPypi
, git
, pep517
, pytestCheckHook
, tomli
, pythonOlder
}:

buildPythonPackage rec {
  pname = "check-manifest";
  version = "0.49";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ZKZARFVCzyJpGWV8e3jQLZwcpbHCXX5m4OH/MlBg9BY=";
  };

  propagatedBuildInputs = [
    build
    pep517
  ] ++ lib.optionals (pythonOlder "3.11") [
    tomli
  ];

  nativeCheckInputs = [
    git
    pytestCheckHook
  ];

  checkInputs = [
    breezy
  ];

  disabledTests = [
    # Test wants to setup a venv
    "test_build_sdist_pep517_isolated"
  ];

  pythonImportsCheck = [
    "check_manifest"
  ];

  meta = with lib; {
    description = "Check MANIFEST.in in a Python source package for completeness";
    mainProgram = "check-manifest";
    homepage = "https://github.com/mgedmin/check-manifest";
    changelog = "https://github.com/mgedmin/check-manifest/blob/${version}/CHANGES.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ lewo ];
  };
}