Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 59 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, docopt, fetchFromGitHub, freezegun, mock, pyjwt, pytest-mock, pytestCheckHook, pythonOlder, requests, requests-mock}:
buildPythonPackage rec { pname = "notifications-python-client"; version = "8.0.0"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "alphagov"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-feATZS7PG9IKY6ooPztA49WykQ/Bt67frSe3PpbiCLc="; };
propagatedBuildInputs = [ docopt pyjwt requests ];
nativeCheckInputs = [ 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"; changelog = "https://github.com/alphagov/notifications-python-client/blob/${version}/CHANGELOG.md"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}