-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefault.nix
25 lines (21 loc) · 838 Bytes
/
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
# pin nixpkgs version for reproducible builds
{ pkgs ? (import (builtins.fetchGit {
url = https://github.com/NixOS/nixpkgs-channels.git;
ref = "nixos-19.09";
rev = "2de9367299f325c2b2021a44c2f63c810f8ad023";
}) {}) }:
pkgs.python2Packages.buildPythonPackage {
pname = "learning";
version = "0.1.0";
src = ./.;
checkInputs = with pkgs.python2Packages; [ pytest ];
propagatedBuildInputs = with pkgs.python2Packages; [ numpy ];
doCheck = false; # Many tests are stochastic and may fail.
checkPhase = "pytest";
meta = with pkgs.stdenv.lib; {
description = "A python machine learning library, with powerful customization for advanced users, and robust default options for quick implementation.";
homepage = https://github.com/justinlovinger/learning;
license = licenses.mit;
maintainers = [ ];
};
}