Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / liccheck / default.nix
blob713fc3cca23ccefa8cfaa36ea83f7717955e353c
1 { lib
2 , buildPythonPackage
3 , configparser
4 , fetchFromGitHub
5 , pip
6 , pytest-mock
7 , pytestCheckHook
8 , python3-openid
9 , pythonOlder
10 , semantic-version
11 , toml
14 buildPythonPackage rec {
15   pname = "liccheck";
16   version = "0.9.2";
17   format = "setuptools";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "dhatim";
23     repo = "python-license-check";
24     rev = "refs/tags/${version}";
25     hash = "sha256-2WJw5TVMjOr+GX4YV0nssOtQeYvDHBLnlWquJQWPL9I=";
26   };
28   propagatedBuildInputs = [
29     configparser
30     semantic-version
31     toml
32   ];
34   nativeCheckInputs = [
35     pip
36     pytest-mock
37     pytestCheckHook
38     python3-openid
39   ];
41   pythonImportsCheck = [
42     "liccheck"
43   ];
45   meta = with lib; {
46     description = "Check python packages from requirement.txt and report issues";
47     homepage = "https://github.com/dhatim/python-license-check";
48     changelog = "https://github.com/dhatim/python-license-check/releases/tag/${version}";
49     license = licenses.asl20;
50     maintainers = with maintainers; [ fab ];
51   };