summary refs log tree commit diff
path: root/pkgs/development/python-modules/sdds/default.nix
blob: 3003dddce6de1f62da1a60178a1ade158c0e42fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "sdds";
  version = "0.2.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "pylhc";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-JcxcF0tDigZz3upzE7rPDynCH45dnLk/zpS0a2dOwRU=";
  };

  propagatedBuildInputs = [ numpy ];

  pythonImportsCheck = [ "sdds" ];
  checkInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Python 3 package to handle SDDS files";
    homepage = "https://pylhc.github.io/sdds/";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ veprbl ];
  };
}