blob: 9996e3574ce37cb263b65e83dbeaf912de0927e2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, packaging
, pytestCheckHook
, pytest-mock
}:
buildPythonPackage rec {
pname = "luddite";
version = "1.0.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "jumptrading";
repo = pname;
rev = "v${version}";
hash = "sha256-JXIM7/5LO95oabM16GwAt3v3a8uldGpGXDWmVic8Ins=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=luddite --cov-report=html --cov-report=term --no-cov-on-fail" "" \
--replace "--disable-socket" ""
'';
propagatedBuildInputs = [ packaging ];
nativeCheckInputs = [ pytestCheckHook pytest-mock ];
pythonImportsCheck = [ "luddite" ];
meta = with lib; {
description = "Checks for out-of-date package versions";
homepage = "https://github.com/jumptrading/luddite";
license = licenses.asl20;
maintainers = with maintainers; [ emilytrau ];
};
}
|