depot/third_party/nixpkgs/pkgs/development/python-modules/mock-open/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

22 lines
557 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, mock }:
buildPythonPackage rec {
pname = "mock-open";
version = "1.3.1";
# no tests in PyPI tarball
src = fetchFromGitHub {
owner = "nivbend";
repo = pname;
rev = "v${version}";
sha256 = "0ikhrhlkl5c7qbigpsv44jw89ws1z7j06gzyg5dh1ki533ifbjm2";
};
propagatedBuildInputs = lib.optional (pythonOlder "3.3") mock;
meta = with lib; {
homepage = "https://github.com/nivbend/mock-open";
description = "A better mock for file I/O";
license = licenses.mit;
};
}