1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 flask,
8 flask-httpauth,
9 pytz,
10 six,
11 pymongo,
12}:
13
14buildPythonPackage rec {
15 pname = "medallion";
16 version = "3.0.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "oasis-open";
21 repo = "cti-taxii-server";
22 tag = "v${version}";
23 hash = "sha256-+fWifWi/XR6MSOLhWXn2CFpItVdkOpzQItlrZkjapAk=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 flask
30 flask-httpauth
31 pymongo
32 pytz
33 six
34 ];
35
36 pythonImportsCheck = [ "medallion" ];
37
38 meta = with lib; {
39 description = "Minimal implementation of a TAXII 2.1 Server in Python";
40 homepage = "https://medallion.readthedocs.io/en/latest/";
41 changelog = "https://github.com/oasis-open/cti-taxii-server/blob/v${version}/CHANGES.txt";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ PapayaJackal ];
44 };
45}