1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 packaging, 7 pytestCheckHook, 8 pytest-cov-stub, 9 pytest-mock, 10}: 11 12buildPythonPackage rec { 13 pname = "luddite"; 14 version = "1.0.4"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "jumptrading"; 19 repo = "luddite"; 20 tag = "v${version}"; 21 hash = "sha256-iJ3h1XRBzLd4cBKFPNOlIV5Z5XJ/miscfIdkpPIpbJ8="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pytest.ini \ 26 --replace "--disable-socket" "" 27 ''; 28 29 nativeBuildInputs = [ setuptools ]; 30 31 propagatedBuildInputs = [ packaging ]; 32 33 pythonImportsCheck = [ "luddite" ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pytest-cov-stub 38 pytest-mock 39 ]; 40 41 meta = with lib; { 42 description = "Checks for out-of-date package versions"; 43 mainProgram = "luddite"; 44 homepage = "https://github.com/jumptrading/luddite"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ emilytrau ]; 47 }; 48}