075e8c2c4f
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
46 lines
906 B
Nix
46 lines
906 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
setuptools-scm,
|
|
importlib-metadata,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mockfs";
|
|
version = "1.1.4";
|
|
pyproject = true;
|
|
|
|
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 = {
|
|
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 = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|