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