1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, flit-core
6, numpy
7, scipy
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "castepxbin";
13 version = "0.3.0";
14
15 disabled = pythonOlder "3.7";
16
17 format = "pyproject";
18
19 src = fetchFromGitHub {
20 owner = "zhubonan";
21 repo = "castepxbin";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-6kumVnm4PLRxuKO6Uz0iHzfYuu21hFC7EPRsc3S1kxE=";
24 };
25
26 nativeBuildInputs = [
27 flit-core
28 ];
29
30 propagatedBuildInputs = [
31 numpy
32 scipy
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 ];
38
39 meta = with lib; {
40 description = "A 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}