My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/luddite/default.nix

37 lines
860 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
, pytest-socket
, pytest-mock
}:
buildPythonPackage rec {
pname = "luddite";
version = "1.0.2";
src = fetchFromGitHub {
owner = "jumptrading";
repo = pname;
rev = "v${version}";
sha256 = "8/7uwO5HLhyXYt+T6VUO/O7TN9+FfRlT8y0r5+CJ/l4=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace "--cov=luddite --cov-report=html --cov-report=term --no-cov-on-fail" ""
'';
propagatedBuildInputs = [ setuptools ];
checkInputs = [ pytestCheckHook pytest-socket 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 ];
};
}