Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / debian-inspector / default.nix
blobcc6a4fffc422db7e9a673d7c08e5df6dca63be4d
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , chardet
5 , attrs
6 , commoncode
7 , pytestCheckHook
8 , setuptools-scm
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "debian-inspector";
14   version = "31.0.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.6";
19   src = fetchPypi {
20     pname = "debian_inspector";
21     inherit version;
22     hash = "sha256-RglPlTRksmm7CYVere7jySy2tIegv6JuulN7Usw9a0c=";
23   };
25   SETUPTOOLS_SCM_PRETEND_VERSION = version;
27   dontConfigure = true;
29   nativeBuildInputs = [
30     setuptools-scm
31   ];
33   propagatedBuildInputs = [
34     chardet
35     attrs
36     commoncode
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [
44     "debian_inspector"
45   ];
47   meta = with lib; {
48     description = "Utilities to parse Debian package, copyright and control files";
49     homepage = "https://github.com/nexB/debian-inspector";
50     license = with licenses; [ asl20 bsd3 mit ];
51     maintainers = [ ];
52   };