blob: 1fa188b8529c961dc1034d2d92c0867e7b036d1b (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
importlib-metadata,
numpy,
rpyc4,
scipy,
appdirs,
callPackage,
}:
buildPythonPackage rec {
pname = "linien-common";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "linien-org";
repo = "linien";
rev = "refs/tags/v${version}";
hash = "sha256-V6oo0a4cNlvn4pIwzchvCTOu7qtUGS+Pc0qpbEsvGZo=";
};
sourceRoot = "${src.name}/linien-common";
preBuild = ''
export HOME=$(mktemp -d)
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
importlib-metadata
numpy
rpyc4
scipy
appdirs
];
pythonImportsCheck = [ "linien_common" ];
passthru.tests = {
pytest = callPackage ./tests.nix { };
};
meta = with lib; {
description = "Shared components of the Linien spectroscopy lock application";
homepage = "https://github.com/linien-org/linien/tree/develop/linien-common";
license = licenses.gpl3Plus;
maintainers = with maintainers; [
fsagbuya
doronbehar
];
};
}
|