summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/asgineer/default.nix
blob: 30f1b77fbbeb1b64bafa5cfb0c574379b2d353e2 (plain)
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
37
38
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  requests,
  flit-core,
}:

buildPythonPackage rec {
  pname = "asgineer";
  version = "0.9.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "almarklein";
    repo = "asgineer";
    tag = "v${version}";
    hash = "sha256-8qI5eHt+UmQGZNCn12Iup9dIVd+aI6r3Z1R+u+SziMc=";
  };

  build-system = [ flit-core ];

  nativeCheckInputs = [
    pytestCheckHook
    requests
  ];

  pythonImportsCheck = [ "asgineer" ];

  meta = {
    description = "Really thin ASGI web framework";
    homepage = "https://asgineer.readthedocs.io";
    changelog = "https://github.com/almarklein/asgineer/releases/tag/v${src.tag}";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ matthiasbeyer ];
  };
}