1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "simplefix";
11 version = "1.0.17";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 repo = "simplefix";
18 owner = "da4089";
19 tag = "v${version}";
20 hash = "sha256-D85JW3JRQ1xErw6krMbAg94WYjPi76Xqjv/MGNMY5ZU=";
21 };
22
23 nativeCheckInputs = [ unittestCheckHook ];
24
25 pythonImportsCheck = [ "simplefix" ];
26
27 unittestFlagsArray = [
28 "-s"
29 "test"
30 ];
31
32 meta = with lib; {
33 description = "Simple FIX Protocol implementation for Python";
34 homepage = "https://github.com/da4089/simplefix";
35 changelog = "https://github.com/da4089/simplefix/releases/tag/v${version}";
36 license = licenses.mit;
37 maintainers = with maintainers; [ catern ];
38 };
39}