nixpkgs/pkgs/development/python-modules/atpublic/default.nix

51 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
2020-08-17 04:01:00 +00:00
, sybil
, typing-extensions
}:
2019-01-21 16:44:25 +00:00
buildPythonPackage rec {
pname = "atpublic";
2021-06-18 21:47:08 +00:00
version = "2.3";
format = "setuptools";
disabled = pythonOlder "3.6";
2019-01-21 16:44:25 +00:00
src = fetchPypi {
inherit pname version;
2021-06-18 21:47:08 +00:00
sha256 = "d6b9167fc3e09a2de2d2adcfc9a1b48d84eab70753c97de3800362e1703e3367";
2019-01-21 16:44:25 +00:00
};
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 = [
pytestCheckHook
sybil
2019-01-21 16:44:25 +00:00
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=public" ""
2019-01-21 16:44:25 +00:00
'';
pythonImportsCheck = [
"public"
];
2019-01-21 16:44:25 +00:00
meta = with lib; {
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 ];
};
}