summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fastapi-versionizer/default.nix
blob: b04648edd38beba1463569c470b1681dabc02305 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,

  # build-system
  setuptools,

  # dependencies
  fastapi,
  natsort,

  # test dependencies
  httpx,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "fastapi-versionizer";
  version = "4.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "alexschimpf";
    repo = "fastapi-versionizer";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Kj7tjy8TDV9MYhqJdVUBRohkIsYoqbQX5qnnkNBJPig=";
  };

  build-system = [ setuptools ];

  dependencies = [
    fastapi
    natsort
  ];

  pythonImportsCheck = [
    "fastapi_versionizer"
    "fastapi_versionizer.versionizer"
  ];

  nativeCheckInputs = [
    httpx
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/alexschimpf/fastapi-versionizer/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    description = "API versionizer for FastAPI web applications";
    downloadPage = "https://github.com/alexschimpf/fastapi-versionizer/releases/tag/${finalAttrs.src.tag}";
    homepage = "https://github.com/alexschimpf/fastapi-versionizer";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      de11n
      despsyched
    ];
  };
})