pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / cherrypy-cors / default.nix
bloba151c9d8fd15e954ff57ab89e1a569c5425cb17f
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchPypi,
6   setuptools,
7   setuptools-scm,
8   httpagentparser,
9   cherrypy,
10   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "cherrypy-cors";
14   version = "1.7.0";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-gzhM1mSnq4uat9SSb+lxOs/gvONmXuKBiaD6BLnyEtY=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     setuptools-scm
27   ];
29   propagatedBuildInputs = [
30     httpagentparser
31     cherrypy
32   ];
34   pythonImportsCheck = [ "cherrypy_cors" ];
36   nativeCheckInputs = [ pytestCheckHook ];
38   meta = with lib; {
39     description = "CORS support for CherryPy";
40     homepage = "https://github.com/cherrypy/cherrypy-cors";
41     license = licenses.mit;
42     maintainers = with maintainers; [ jpts ];
43   };