summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/medallion/default.nix
blob: a6676d4a70a1db6496fcc2ab187f39ad79ec3358 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  flask,
  flask-httpauth,
  pytz,
  six,
  pymongo,
}:

buildPythonPackage rec {
  pname = "medallion";
  version = "3.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "oasis-open";
    repo = "cti-taxii-server";
    tag = "v${version}";
    hash = "sha256-+fWifWi/XR6MSOLhWXn2CFpItVdkOpzQItlrZkjapAk=";
  };

  build-system = [ setuptools ];

  dependencies = [
    flask
    flask-httpauth
    pymongo
    pytz
    six
  ];

  pythonImportsCheck = [ "medallion" ];

  meta = {
    description = "Minimal implementation of a TAXII 2.1 Server in Python";
    homepage = "https://medallion.readthedocs.io/en/latest/";
    changelog = "https://github.com/oasis-open/cti-taxii-server/blob/v${version}/CHANGES.txt";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ PapayaJackal ];
  };
}