From 220d6c532c236f8af2ec37a86548d965c8255336 Mon Sep 17 00:00:00 2001 From: jpts Date: Tue, 27 Jun 2023 22:57:08 +0100 Subject: [PATCH 1/2] maintainers: add jpts --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 114248d005b0..8d29c7499713 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -8818,6 +8818,12 @@ githubId = 752510; name = "Martin Potier"; }; + jpts = { + email = "james+nixpkgs@cleverley-prance.uk"; + github = "jpts"; + githubId = 5352661; + name = "James Cleverley-Prance"; + }; jqqqqqqqqqq = { email = "jqqqqqqqqqq@gmail.com"; github = "jqqqqqqqqqq"; From 9f3a78c8f21864acc1ff23e960063b317a229dfc Mon Sep 17 00:00:00 2001 From: jpts Date: Fri, 27 Oct 2023 00:13:37 +0100 Subject: [PATCH 2/2] python3Packages.cherrypy-cors: init at 1.7.0 --- .../python-modules/cherrypy-cors/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/cherrypy-cors/default.nix diff --git a/pkgs/development/python-modules/cherrypy-cors/default.nix b/pkgs/development/python-modules/cherrypy-cors/default.nix new file mode 100644 index 000000000000..72af66bbef75 --- /dev/null +++ b/pkgs/development/python-modules/cherrypy-cors/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, setuptools +, setuptools-scm +, httpagentparser +, cherrypy +, pytestCheckHook +}: +buildPythonPackage rec { + pname = "cherrypy-cors"; + version = "1.7.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-gzhM1mSnq4uat9SSb+lxOs/gvONmXuKBiaD6BLnyEtY="; + }; + + nativeBuildInputs = [ + setuptools + setuptools-scm + ]; + + propagatedBuildInputs = [ + httpagentparser + cherrypy + ]; + + pythonImportsCheck = [ "cherrypy_cors" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = with lib; { + description = "CORS support for CherryPy"; + homepage = "https://github.com/cherrypy/cherrypy-cors"; + license = licenses.mit; + maintainers = with maintainers; [ jpts ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 311415f7c3d4..ed5c2a483c72 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1964,6 +1964,8 @@ self: super: with self; { cherrypy = callPackage ../development/python-modules/cherrypy { }; + cherrypy-cors = callPackage ../development/python-modules/cherrypy-cors { }; + chess = callPackage ../development/python-modules/chess { }; chevron = callPackage ../development/python-modules/chevron { };