1{ lib
2, breezy
3, build
4, buildPythonPackage
5, fetchPypi
6, git
7, pep517
8, pytestCheckHook
9, tomli
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "check-manifest";
15 version = "0.49";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-ZKZARFVCzyJpGWV8e3jQLZwcpbHCXX5m4OH/MlBg9BY=";
23 };
24
25 propagatedBuildInputs = [
26 build
27 pep517
28 ] ++ lib.optionals (pythonOlder "3.11") [
29 tomli
30 ];
31
32 nativeCheckInputs = [
33 git
34 pytestCheckHook
35 ];
36
37 checkInputs = [
38 breezy
39 ];
40
41 disabledTests = [
42 # Test wants to setup a venv
43 "test_build_sdist_pep517_isolated"
44 ];
45
46 pythonImportsCheck = [
47 "check_manifest"
48 ];
49
50 meta = with lib; {
51 description = "Check MANIFEST.in in a Python source package for completeness";
52 homepage = "https://github.com/mgedmin/check-manifest";
53 changelog = "https://github.com/mgedmin/check-manifest/blob/${version}/CHANGES.rst";
54 license = licenses.mit;
55 maintainers = with maintainers; [ lewo ];
56 };
57}