nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "sdds";
10 version = "0.2.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "pylhc";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "sha256-JcxcF0tDigZz3upzE7rPDynCH45dnLk/zpS0a2dOwRU=";
18 };
19
20 propagatedBuildInputs = [ numpy ];
21
22 pythonImportsCheck = [ "sdds" ];
23 checkInputs = [ pytestCheckHook ];
24
25 meta = with lib; {
26 description = "Python 3 package to handle SDDS files";
27 homepage = "https://pylhc.github.io/sdds/";
28 license = with licenses; [ mit ];
29 maintainers = with maintainers; [ veprbl ];
30 };
31}