forked from cadCAD-org/cadCAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
45 lines (40 loc) · 1.14 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ pkgs ? import <nixpkgs> { }, stdenv ? pkgs.stdenv, fetchPypi ? pkgs.fetchPypi
, pythonPkgs ? pkgs.python36Packages
, buildPythonPackage ? pythonPkgs.buildPythonPackage }:
buildPythonPackage rec {
pname = "cadCAD";
version = "0.4.15";
# Nix allows fetching the project source from different locations
#src = fetchPypi {
# inherit pname version;
# sha256 = "4f2a4d39e4ea601b9ab42b2db08b5918a9538c168cff1c6895ae26646f3d73b1";
#};
# src = builtins.fetchGit {
# url = "[email protected]:BlockScience/cadCAD.git";
# ref = "master";
# };
src = ./.;
# In future, when tests are introduced, this can be updated to 'true'
doCheck = false;
buildInputs = with pythonPkgs; [
wheel
pytest
parameterized
];
checkInputs = [ ];
propagatedBuildInputs = with pythonPkgs; [
pandas
pathos
fn
funcy
tabulate
];
meta = with stdenv.lib; {
description =
"Design, test and validate complex systems through simulation in Python";
homepage = "https://github.com/BlockScience/cadCAD";
license = licenses.mit;
# maintainers = with maintainers; [ benschza ];
platforms = platforms.unix;
};
}