mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
866 B
Nix
38 lines
866 B
Nix
{ 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 ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|