depot/third_party/nixpkgs/pkgs/development/python-modules/mock-open/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

25 lines
504 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 = "A better mock for file I/O";
license = licenses.mit;
};
}