mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.mock: switch to pyproject
This commit is contained in:
parent
40211d0f32
commit
e197a90da7
1 changed files with 8 additions and 5 deletions
|
|
@ -3,18 +3,21 @@
|
|||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "mock";
|
||||
version = "5.2.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
inherit (finalAttrs) pname version;
|
||||
hash = "sha256-TkYOgYYptLFz8y0IvzDTr4Ejr7uOBLtXB6H9R5nlA/A=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "mock" ];
|
||||
|
|
@ -22,8 +25,8 @@ buildPythonPackage rec {
|
|||
meta = {
|
||||
description = "Rolling backport of unittest.mock for all Pythons";
|
||||
homepage = "https://github.com/testing-cabal/mock";
|
||||
changelog = "https://github.com/testing-cabal/mock/blob/${version}/CHANGELOG.rst";
|
||||
changelog = "https://github.com/testing-cabal/mock/blob/${finalAttrs.version}/CHANGELOG.rst";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue