Merge pull request #263671 from jpts/nix-cherrypy-cors

python3Packages.cherrypy-cors: init at 1.7.0
This commit is contained in:
OTABI Tomoya 2023-12-21 10:52:44 +09:00 committed by GitHub
commit f9074e626c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 0 deletions

View File

@ -9045,6 +9045,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";

View File

@ -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 ];
};
}

View File

@ -2000,6 +2000,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 { };