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