1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "sdds";
12 version = "0.4.2";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "pylhc";
19 repo = "sdds";
20 tag = "v${version}";
21 hash = "sha256-h1gEqzmKCUr8+w3Fv8lv35/0itZwela//AQsD3u0UJA=";
22 };
23
24 propagatedBuildInputs = [ numpy ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "sdds" ];
29
30 meta = with lib; {
31 description = "Module to handle SDDS files";
32 homepage = "https://pylhc.github.io/sdds/";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ veprbl ];
35 };
36}