Files
nixpkgs/pkgs/development/python-modules/extras/default.nix
2026-07-21 01:13:22 +02:00

38 lines
756 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
testtools,
}:
buildPythonPackage (finalAttrs: {
pname = "extras";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-Ey423hC5yR1dTMYgFgpHbgRoqI8WyUMYF6ZylhGoG04=";
};
build-system = [ setuptools ];
preCheck = ''
substituteInPlace extras/tests/test_extras.py \
--replace-fail "assertEquals(" "assertEqual("
'';
nativeCheckInputs = [
pytestCheckHook
testtools
];
meta = {
description = "Useful extra bits for Python - things that should be in the standard library";
homepage = "https://github.com/testing-cabal/extras";
license = lib.licenses.mit;
};
})