mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 14:04:52 +00:00
Merge pull request #150444 from fabaff/notifications-python-client
python3Packages.notifications-python-client: init at 6.3.0
This commit is contained in:
commit
7796f47d77
@ -0,0 +1,58 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, docopt
|
||||||
|
, fetchFromGitHub
|
||||||
|
, freezegun
|
||||||
|
, mock
|
||||||
|
, pyjwt
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
, requests-mock
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "notifications-python-client";
|
||||||
|
version = "6.3.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "alphagov";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-pfOTVgsfXJQ9GIGowra3RAwxCri76RgnA9iyWbjomCk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
docopt
|
||||||
|
pyjwt
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
freezegun
|
||||||
|
mock
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "'pytest-runner'" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"notifications_python_client"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python client for the GOV.UK Notify API";
|
||||||
|
homepage = "https://github.com/alphagov/notifications-python-client";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -5302,10 +5302,12 @@ in {
|
|||||||
|
|
||||||
notedown = callPackage ../development/python-modules/notedown { };
|
notedown = callPackage ../development/python-modules/notedown { };
|
||||||
|
|
||||||
notify2 = callPackage ../development/python-modules/notify2 { };
|
notifications-python-client = callPackage ../development/python-modules/notifications-python-client { };
|
||||||
|
|
||||||
notify-py = callPackage ../development/python-modules/notify-py { };
|
notify-py = callPackage ../development/python-modules/notify-py { };
|
||||||
|
|
||||||
|
notify2 = callPackage ../development/python-modules/notify2 { };
|
||||||
|
|
||||||
notmuch = callPackage ../development/python-modules/notmuch {
|
notmuch = callPackage ../development/python-modules/notmuch {
|
||||||
inherit (pkgs) notmuch;
|
inherit (pkgs) notmuch;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user