nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 numpy,
7 scipy,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "castepxbin";
13 version = "0.3.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "zhubonan";
18 repo = "castepxbin";
19 tag = "v${version}";
20 hash = "sha256-M+OoKr9ODIp47gt64hf47A1PblyZpBzulKI7nEm8hdo=";
21 };
22
23 build-system = [ flit-core ];
24
25 dependencies = [
26 numpy
27 scipy
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 meta = {
33 changelog = "https://github.com/zhubonan/castepxbin/releases/tag/${src.tag}";
34 description = "Collection of readers for CASTEP binary outputs";
35 homepage = "https://github.com/zhubonan/castepxbin";
36 license = lib.licenses.mit;
37 maintainers = with lib.maintainers; [ dotlambda ];
38 };
39}