Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / luddite / default.nix
blob4059288da674c14d3c630651ea8e556294eb199e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , packaging
6 , pytestCheckHook
7 , pytest-mock
8 }:
10 buildPythonPackage rec {
11   pname = "luddite";
12   version = "1.0.4";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "jumptrading";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-iJ3h1XRBzLd4cBKFPNOlIV5Z5XJ/miscfIdkpPIpbJ8=";
20   };
22   postPatch = ''
23     substituteInPlace pytest.ini \
24       --replace "--cov=luddite --cov-report=html --cov-report=term --no-cov-on-fail" "" \
25       --replace "--disable-socket" ""
26   '';
28   nativeBuildInputs = [
29     setuptools
30   ];
32   propagatedBuildInputs = [
33     packaging
34   ];
36   pythonImportsCheck = [
37     "luddite"
38   ];
40   nativeCheckInputs = [
41     pytestCheckHook
42     pytest-mock
43   ];
45   meta = with lib; {
46     description = "Checks for out-of-date package versions";
47     mainProgram = "luddite";
48     homepage = "https://github.com/jumptrading/luddite";
49     license = licenses.asl20;
50     maintainers = with maintainers; [ emilytrau ];
51   };