2022-03-10 11:51:30 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2018-03-31 19:35:43 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pretend";
|
2018-05-09 15:49:30 +01:00
|
|
|
version = "1.0.9";
|
2022-03-10 11:51:30 +00:00
|
|
|
format = "setuptools";
|
2018-03-31 19:35:43 +01:00
|
|
|
|
2022-03-10 11:51:30 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alex";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-OqMfeIMFNBBLq6ejR3uOCIHZ9aA4zew7iefVlAsy1JQ=";
|
2018-03-31 19:35:43 +01:00
|
|
|
};
|
|
|
|
|
2022-03-10 11:51:30 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pretend"
|
|
|
|
];
|
2018-03-31 19:35:43 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-03-10 11:51:30 +00:00
|
|
|
description = "Module for stubbing";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/alex/pretend";
|
2018-03-31 19:35:43 +01:00
|
|
|
license = licenses.bsd3;
|
2022-03-10 11:51:30 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-03-31 19:35:43 +01:00
|
|
|
};
|
|
|
|
}
|