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
16 disabled = pythonOlder "3.7";
17
18 format = "pyproject";
19
20 src = fetchFromGitHub {
21 owner = "zhubonan";
22 repo = "castepxbin";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-6kumVnm4PLRxuKO6Uz0iHzfYuu21hFC7EPRsc3S1kxE=";
25 };
26
27 nativeBuildInputs = [ flit-core ];
28
29 propagatedBuildInputs = [
30 numpy
31 scipy
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 meta = with lib; {
37 description = "A collection of readers for CASTEP binary outputs";
38 homepage = "https://github.com/zhubonan/castepxbin";
39 license = licenses.mit;
40 maintainers = with maintainers; [ dotlambda ];
41 };
42}