1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, pytestCheckHook
6, pytest-socket
7, pytest-mock
8}:
9
10buildPythonPackage rec {
11 pname = "luddite";
12 version = "1.0.2";
13
14 src = fetchFromGitHub {
15 owner = "jumptrading";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "8/7uwO5HLhyXYt+T6VUO/O7TN9+FfRlT8y0r5+CJ/l4=";
19 };
20
21 postPatch = ''
22 substituteInPlace pytest.ini \
23 --replace "--cov=luddite --cov-report=html --cov-report=term --no-cov-on-fail" ""
24 '';
25
26 propagatedBuildInputs = [ setuptools ];
27
28 checkInputs = [ pytestCheckHook pytest-socket pytest-mock ];
29 pythonImportsCheck = [ "luddite" ];
30
31 meta = with lib; {
32 description = "Checks for out-of-date package versions";
33 homepage = "https://github.com/jumptrading/luddite";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ emilytrau ];
36 };
37}