nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytz,
6 requests,
7 setuptools,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "taxii2-client";
13 version = "2.3.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "oasis-open";
18 repo = "cti-taxii-client";
19 tag = "v${version}";
20 hash = "sha256-e22bJdLAlm30vv/xIgLSjcwmzfN0Pwt2JydLgEbA+Is=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 pytz
27 requests
28 six
29 ];
30
31 pythonImportsCheck = [ "taxii2client" ];
32
33 meta = {
34 description = "TAXII 2 client library";
35 homepage = "https://github.com/oasis-open/cti-taxii-client/";
36 changelog = "https://github.com/oasis-open/cti-taxii-client/blob/${src.rev}/CHANGES.txt";
37 license = lib.licenses.bsd3;
38 maintainers = with lib.maintainers; [ fab ];
39 };
40}