Files
nixpkgs/pkgs/development/python-modules/mockfs/default.nix
Willy Hille 6f2584aad6 python3Packages.mockfs: fix build
pytest.ini contents were imported to pyproject.toml upstream, but the package builds fine even without the patch
2026-05-04 14:31:47 +02:00

42 lines
847 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
importlib-metadata,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mockfs";
version = "2.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "mockfs";
repo = "mockfs";
tag = "v${version}";
hash = "sha256-fTN9HLzlVCn0O8nYy4UUM+JIsYJ3qDPw3h41yhcilJ8=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [ importlib-metadata ];
pythonImportsCheck = [ "mockfs" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Simple mock filesystem for use in unit tests";
homepage = "https://github.com/mockfs/mockfs";
changelog = "https://github.com/mockfs/mockfs/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = [ ];
};
}