Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ lib, buildPythonPackage, docopt, fetchFromGitHub, freezegun, mock, pyjwt, pytest-mock, pytestCheckHook, pythonOlder, requests, requests-mock, setuptools,}:
buildPythonPackage rec { pname = "notifications-python-client"; version = "10.0.1"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "alphagov"; repo = "notifications-python-client"; tag = version; hash = "sha256-k4q6FS3wjolt4+qtDQlunBLmCCPgLgrhr8zgOMEX4QU="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail "pytest-runner" "" '';
build-system = [ setuptools ];
dependencies = [ docopt pyjwt requests ];
nativeCheckInputs = [ freezegun mock pytest-mock pytestCheckHook requests-mock ];
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 = licenses.mit; maintainers = with maintainers; [ fab ]; };}