mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
![Alexis Hildebrandt](/assets/img/avatar_default.png)
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
26 lines
502 B
Nix
26 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;
|
|
};
|
|
}
|