1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 setuptools,
7 incremental,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "systembridgemodels";
13 version = "4.0.4";
14 pyproject = true;
15
16 disabled = pythonOlder "3.11";
17
18 src = fetchFromGitHub {
19 owner = "timmo001";
20 repo = "system-bridge-models";
21 rev = "refs/tags/${version}";
22 hash = "sha256-iFJ95ouhfbaC0D2Gkc1KO+JueYTFTOj1unnYSDyPAe8=";
23 };
24
25 postPatch = ''
26 substituteInPlace systembridgemodels/_version.py \
27 --replace-fail ", dev=1" ""
28 '';
29
30 nativeBuildInputs = [ setuptools ];
31
32 propagatedBuildInputs = [ incremental ];
33
34 pythonImportsCheck = [ "systembridgemodels" ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 meta = {
39 changelog = "https://github.com/timmo001/system-bridge-models/releases/tag/${version}";
40 description = "This is the models package used by the System Bridge project";
41 homepage = "https://github.com/timmo001/system-bridge-models";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [ dotlambda ];
44 };
45}