python310Packages.fixtures: 3.0.0 -> 4.1.0
This commit is contained in:
parent
0f23a142ec
commit
aeb8940c36
1 changed files with 17 additions and 23 deletions
|
@ -1,53 +1,47 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, fetchpatch
|
|
||||||
, pythonAtLeast
|
|
||||||
, pbr
|
, pbr
|
||||||
|
, setuptools
|
||||||
, testtools
|
, testtools
|
||||||
, mock
|
, mock
|
||||||
, python
|
, pytestCheckHook
|
||||||
, six
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "fixtures";
|
pname = "fixtures";
|
||||||
version = "3.0.0";
|
version = "4.1.0";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "fcf0d60234f1544da717a9738325812de1f42c2fa085e2d9252d8fff5712b2ef";
|
hash = "sha256-grHF5p9hVSbvbAZxiKHmxgZ99/iDMlCcmfi4/buXdvM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = lib.optionals (pythonAtLeast "3.9") [
|
|
||||||
# drop tests that try to monkeypatch a classmethod, which fails on python3.9
|
|
||||||
# https://github.com/testing-cabal/fixtures/issues/44
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://salsa.debian.org/openstack-team/python/python-fixtures/-/raw/debian/victoria/debian/patches/remove-broken-monkey-patch-test.patch";
|
|
||||||
sha256 = "1s3hg2zmqc4shmnf90kscphzj5qlqpxghzw2a59p8f88zrbsj97r";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pbr
|
pbr
|
||||||
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
testtools
|
pbr
|
||||||
six # not in install_requires, but used in fixture.py
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.optional-dependencies = {
|
||||||
|
streams = [
|
||||||
|
testtools
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
mock
|
mock
|
||||||
];
|
pytestCheckHook
|
||||||
|
] ++ passthru.optional-dependencies.streams;
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} -m testtools.run fixtures.test_suite
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Reusable state for writing clean tests and more";
|
description = "Reusable state for writing clean tests and more";
|
||||||
homepage = "https://pypi.python.org/pypi/fixtures";
|
homepage = "https://pypi.org/project/fixtures/";
|
||||||
|
changelog = "https://github.com/testing-cabal/fixtures/blob/${version}/NEWS";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue