depot/third_party/nixpkgs/pkgs/development/python-modules/pretend/default.nix
Default email 2ce5db779a Project import generated by Copybara.
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
2022-05-18 16:49:53 +02:00

36 lines
646 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=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pretend"
];
meta = with lib; {
description = "Module for stubbing";
homepage = "https://github.com/alex/pretend";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}