nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 29 lines 644 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "mock"; 10 version = "5.2.0"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 hash = "sha256-TkYOgYYptLFz8y0IvzDTr4Ejr7uOBLtXB6H9R5nlA/A="; 16 }; 17 18 nativeCheckInputs = [ pytestCheckHook ]; 19 20 pythonImportsCheck = [ "mock" ]; 21 22 meta = { 23 description = "Rolling backport of unittest.mock for all Pythons"; 24 homepage = "https://github.com/testing-cabal/mock"; 25 changelog = "https://github.com/testing-cabal/mock/blob/${version}/CHANGELOG.rst"; 26 license = lib.licenses.bsd2; 27 maintainers = [ ]; 28 }; 29}