depot/third_party/nixpkgs/pkgs/development/python-modules/mock-open/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

25 lines
502 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
}:
buildPythonPackage rec {
pname = "mock-open";
version = "1.4.0";
format = "setuptools";
# no tests in PyPI tarball
src = fetchFromGitHub {
owner = "nivbend";
repo = pname;
rev = "v${version}";
sha256 = "0qlz4y8jqxsnmqg03yp9f87rmnjrvmxm5qvm6n1218gm9k5dixbm";
};
meta = with lib; {
homepage = "https://github.com/nivbend/mock-open";
description = "Better mock for file I/O";
license = licenses.mit;
};
}