nixpkgs/pkgs/development/python-modules/mockfs/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

46 lines
934 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
setuptools-scm,
importlib-metadata,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mockfs";
version = "1.1.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "mockfs";
repo = "mockfs";
rev = "v${version}";
hash = "sha256-JwSkOI0dz9ZetfE0ZL3CthvcCSXGFYX+yQZy/oC6VBk=";
};
postPatch = ''
sed -i '/addopts/d' pytest.ini
'';
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [ importlib-metadata ];
pythonImportsCheck = [ "mockfs" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Simple mock filesystem for use in unit tests";
homepage = "https://github.com/mockfs/mockfs";
changelog = "https://github.com/mockfs/mockfs/blob/${src.rev}/CHANGES.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}