nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lxml,
6 ordered-set,
7 pytestCheckHook,
8 python-dateutil,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "mixbox";
14 version = "1.0.5";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "CybOXProject";
19 repo = "mixbox";
20 tag = "v${version}";
21 hash = "sha256-qK3cKOf0s345M1pVFro5NFhDj4lch12UegOY1ZUEOBQ=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 lxml
28 ordered-set
29 python-dateutil
30 ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 pythonImportsCheck = [ "mixbox" ];
35
36 enabledTestPaths = [ "test/*.py" ];
37
38 disabledTests = [
39 # Tests are out-dated
40 "test_serialize_datetime_as_date"
41 "test_preferred_prefixes"
42 ];
43
44 meta = {
45 description = "Library of common code leveraged by cybox, maec and stix";
46 homepage = "https://github.com/CybOXProject/mixbox";
47 changelog = "https://github.com/CybOXProject/mixbox/releases/tag/v${version}";
48 license = lib.licenses.bsd3;
49 maintainers = with lib.maintainers; [ fab ];
50 };
51}