mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
pythonPackages.mock-open: init at 1.3.1
This commit is contained in:
parent
1e5cb384d5
commit
00fc66dc7d
2 changed files with 24 additions and 0 deletions
22
pkgs/development/python-modules/mock-open/default.nix
Normal file
22
pkgs/development/python-modules/mock-open/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
|
@ -9688,6 +9688,8 @@ in {
|
|||
};
|
||||
});
|
||||
|
||||
mock-open = callPackage ../development/python-modules/mock-open { };
|
||||
|
||||
modestmaps = buildPythonPackage rec {
|
||||
name = "ModestMaps-1.4.6";
|
||||
|
||||
|
|
Loading…
Reference in a new issue