2021-11-11 23:38:06 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-01-21 00:02:45 +00:00
|
|
|
, pdm-pep517
|
2020-08-17 04:01:00 +00:00
|
|
|
, sybil
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
2019-01-21 16:44:25 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "atpublic";
|
2022-01-14 00:58:08 +00:00
|
|
|
version = "3.0.1";
|
2022-01-21 00:02:45 +00:00
|
|
|
format = "pyproject";
|
2021-11-11 23:38:06 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2019-01-21 16:44:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-14 00:58:08 +00:00
|
|
|
sha256 = "bb072b50e6484490404e5cb4034e782aaa339fdd6ac36434e53c10791aef18bf";
|
2019-01-21 16:44:25 +00:00
|
|
|
};
|
|
|
|
|
2022-01-21 00:02:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pdm-pep517
|
|
|
|
];
|
|
|
|
|
2020-08-17 04:01:00 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2019-01-21 16:44:25 +00:00
|
|
|
checkInputs = [
|
2021-11-11 23:38:06 +00:00
|
|
|
pytestCheckHook
|
|
|
|
sybil
|
2019-01-21 16:44:25 +00:00
|
|
|
];
|
|
|
|
|
2021-11-11 23:38:06 +00:00
|
|
|
postPatch = ''
|
2022-01-21 00:02:45 +00:00
|
|
|
sed -i '/cov=public/d' pyproject.toml
|
2019-01-21 16:44:25 +00:00
|
|
|
'';
|
|
|
|
|
2021-11-11 23:38:06 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"public"
|
|
|
|
];
|
|
|
|
|
2019-01-21 16:44:25 +00:00
|
|
|
meta = with lib; {
|
2021-11-11 23:38:06 +00:00
|
|
|
description = "Python decorator and function which populates a module's __all__ and globals";
|
|
|
|
homepage = "https://public.readthedocs.io/";
|
2019-01-21 16:44:25 +00:00
|
|
|
longDescription = ''
|
|
|
|
This is a very simple decorator and function which populates a module's
|
|
|
|
__all__ and optionally the module globals.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ eadwu ];
|
|
|
|
};
|
|
|
|
}
|