-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
50 lines (45 loc) · 1.31 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
46
47
48
let
pkgs = import (fetchTarball
"https://github.com/NixOS/nixpkgs-channels/archive/99dfb6dce37edcd1db7cb85c2db97089d9d5f442.tar.gz"
) {};
stdenv = pkgs.stdenv;
lib = pkgs.lib;
pythonPackages = pkgs.python35Packages;
python = pkgs.python35;
jenkinsapi = pythonPackages.buildPythonPackage rec {
pname = "jenkinsapi";
version = "0.3.4";
name = "${pname}-${version}";
format = "wheel";
src = pythonPackages.fetchPypi {
inherit pname version format;
sha256 = "0xyfalcbz9f92pvf9mi9mv614r87c53rnd4jsw8mkvxnwfr87737";
};
propagatedBuildInputs = with pythonPackages; [ pytz requests2 six ];
meta = {
description = "A Python API for accessing resources on a Jenkins continuous-integration server";
homepage = https://github.com/pycontribs/jenkinsapi;
license = lib.licenses.mit;
};
};
in pythonPackages.buildPythonApplication {
name = "myjenkins";
src = ./.;
propagatedBuildInputs = [jenkinsapi] ++ (with pythonPackages; [
click
colorama
termcolor
] ++ lib.optionals stdenv.isLinux [pandas]);
buildInputs = [python] ++ (with pkgs; [
stdenv
less
which
]) ++ (with pythonPackages; [
pytest
mock
]);
checkPhase = "py.test";
doCheck = false;
postShellHook = ''
'';
}