about summary refs log tree commit diff
path: root/pkgs/development/python-modules/legacy-cgi/default.nix
blob: e7c3e0a198d3de67554f6375027fa0b1da8bba03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "legacy-cgi";
  version = "2.6.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jackrosenthal";
    repo = "legacy-cgi";
    rev = "refs/tags/v${version}";
    hash = "sha256-hhWZoRswkuwvgkcKthNhMkPPhhoRH4TjdNp+orluQTQ=";
  };

  build-system = [ poetry-core ];

  pythonImportsCheck = [
    "cgi"
    "cgitb"
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594";
    homepage = "https://github.com/jackrosenthal/legacy-cgi";
    license = lib.licenses.psfl;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}