Files
nixpkgs/pkgs/development/python-modules/luddite/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

39 lines
904 B
Nix

{ 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 ];
};
}