1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 flit-core,
7 numpy,
8 scipy,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "castepxbin";
14 version = "0.3.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "zhubonan";
21 repo = "castepxbin";
22 tag = "v${version}";
23 hash = "sha256-6kumVnm4PLRxuKO6Uz0iHzfYuu21hFC7EPRsc3S1kxE=";
24 };
25
26 build-system = [ flit-core ];
27
28 pythonRelaxDeps = [
29 "numpy"
30 ];
31
32 dependencies = [
33 numpy
34 scipy
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 meta = with lib; {
40 description = "Collection of readers for CASTEP binary outputs";
41 homepage = "https://github.com/zhubonan/castepxbin";
42 license = licenses.mit;
43 maintainers = with maintainers; [ dotlambda ];
44 };
45}