-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdefault.nix
More file actions
29 lines (25 loc) · 782 Bytes
/
default.nix
File metadata and controls
29 lines (25 loc) · 782 Bytes
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
{ pkgs ? (import (builtins.fetchGit {
url = https://github.com/NixOS/nixpkgs.git;
ref = "nixos-20.09";
rev = "df8e3bd110921621d175fad88c9e67909b7cb3d3";
}) {}) }:
let
pythonPackages = pkgs.python2Packages;
in pkgs.pythonPackages.buildPythonPackage {
pname = "optimal";
version = "0.2.1";
src = pkgs.lib.cleanSource ./.;
checkInputs = with pythonPackages; [ pytest ];
propagatedBuildInputs = with pythonPackages; [
dill
numpy
];
doCheck = false; # Many tests are stochastic and may fail.
checkPhase = ''pytest -m "not slowtest"'';
meta = with pkgs.stdenv.lib; {
description = "A python metaheuristic optimization library";
homepage = "https://github.com/JustinLovinger/optimal";
license = licenses.mit;
maintainers = [ ];
};
}