Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / wheel-inspect / default.nix
blobc8ce155c788ffddaddcf1224d0728b561396cc14
1 { lib
2 , attrs
3 , buildPythonPackage
4 , entry-points-txt
5 , fetchFromGitHub
6 , headerparser
7 , jsonschema
8 , packaging
9 , pytestCheckHook
10 , pythonOlder
11 , readme_renderer
12 , wheel-filename
15 buildPythonPackage rec {
16   pname = "wheel-inspect";
17   version = "1.7.1";
18   format = "pyproject";
20   disabled = pythonOlder "3.6";
22   src = fetchFromGitHub {
23     owner = "jwodder";
24     repo = pname;
25     rev = "v${version}";
26     hash = "sha256-pB9Rh+A7GlxnYuka2mTSBoxpoyYCzoaMPVgsHDlpos0=";
27   };
29   propagatedBuildInputs = [
30     attrs
31     entry-points-txt
32     headerparser
33     packaging
34     readme_renderer
35     wheel-filename
36   ];
38   nativeCheckInputs = [
39     jsonschema
40     pytestCheckHook
41   ];
43   postPatch = ''
44     substituteInPlace tox.ini \
45       --replace " --cov=wheel_inspect --no-cov-on-fail" ""
46     substituteInPlace setup.cfg \
47       --replace "entry-points-txt ~= 0.1.0" "entry-points-txt >= 0.1.0"
48   '';
50   pythonImportsCheck = [
51     "wheel_inspect"
52   ];
54   pytestFlagsArray = [
55     "-W"
56     "ignore::DeprecationWarning"
57   ];
59   meta = with lib; {
60     description = "Extract information from wheels";
61     homepage = "https://github.com/jwodder/wheel-inspect";
62     license = with licenses; [ mit ];
63     maintainers = with maintainers; [ ayazhafiz ];
64   };