depot/third_party/nixpkgs/pkgs/development/python-modules/pretend/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

36 lines
652 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pretend";
version = "1.0.9";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alex";
repo = pname;
rev = "v${version}";
hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pretend"
];
meta = with lib; {
description = "Module for stubbing";
homepage = "https://github.com/alex/pretend";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}