Skip to content

Commit 4e51d1b

Browse files
danieldkDaniël de Kok
authored andcommitted
Add default.nix to build in-place with Nix
1 parent 1524ba8 commit 4e51d1b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

default.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
pkgs ? import <nixpkgs> {}
3+
, python ? pkgs.python3
4+
}:
5+
6+
with python.pkgs;
7+
8+
buildPythonPackage {
9+
pname = "finalfusion";
10+
version = "0.7.0-git";
11+
12+
src = pkgs.nix-gitignore.gitignoreSource [ ".git/" "*.nix" "result*" ] ./.;
13+
14+
nativeBuildInputs = [
15+
cython
16+
];
17+
18+
propagatedBuildInputs = [
19+
numpy
20+
toml
21+
];
22+
23+
checkInputs = [
24+
pytest
25+
];
26+
27+
checkPhase = ''
28+
pytest
29+
30+
patchShebangs tests/conversion_integration.sh
31+
export PATH=$PATH:$out/bin
32+
tests/conversion_integration.sh
33+
'';
34+
}

0 commit comments

Comments
 (0)