mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
38 lines
756 B
Nix
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;
|
|
};
|
|
})
|