Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1c6a193b3ed3
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b36dc66bfea6
Choose a head ref
  • 4 commits
  • 5 files changed
  • 1 contributor

Commits on Mar 5, 2019

  1. python.pkgs.awkward: fix tests

    pytest.importorskip() doesn't work when we don't use pytest to run tests
    Robert Schütz committed Mar 5, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    eadwu Edmund Wu
    Copy the full SHA
    654e6ec View commit details
  2. python.pkgs.uproot: update checkInputs

    Robert Schütz committed Mar 5, 2019
    Copy the full SHA
    1435d45 View commit details
  3. python.pkgs.tvdb_api: disable tests

    Robert Schütz committed Mar 5, 2019
    Copy the full SHA
    a5c3c8e View commit details
  4. Copy the full SHA
    b36dc66 View commit details
10 changes: 7 additions & 3 deletions pkgs/development/python-modules/awkward/default.nix
Original file line number Diff line number Diff line change
@@ -16,12 +16,16 @@ buildPythonPackage rec {
sha256 = "7016dc02d15b8797b59a461ccc8d218f37c335b97fa6b376638c0edd4ffc9de2";
};

buildInputs = [ pytestrunner h5py ];
checkInputs = [ pytest ];
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytest h5py ];
propagatedBuildInputs = [ numpy ];

checkPhase = ''
py.test
'';

meta = with lib; {
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy.";
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
homepage = https://github.com/scikit-hep/awkward-array;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
16 changes: 12 additions & 4 deletions pkgs/development/python-modules/supervise_api/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, substituteAll
, supervise
, isPy3k
, whichcraft
@@ -16,11 +17,18 @@ buildPythonPackage rec {
sha256 = "1230f42294910e83421b7d3b08a968d27d510a4a709e966507ed70db5da1b9de";
};

propagatedBuildInputs = [
supervise
] ++ lib.optionals ( !isPy3k ) [
whichcraft
patches = [
(substituteAll {
src = ./supervise-path.patch;
inherit supervise;
})
];

# In the git repo, supervise_api lives inside a python subdir
patchFlags = [ "-p2" ];

propagatedBuildInputs = lib.optional (!isPy3k) whichcraft;

checkInputs = [ utillinux ];

meta = {
15 changes: 15 additions & 0 deletions pkgs/development/python-modules/supervise_api/supervise-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/python/supervise_api/supervise.py b/python/supervise_api/supervise.py
index 497d3ea..be57e35 100644
--- a/python/supervise_api/supervise.py
+++ b/python/supervise_api/supervise.py
@@ -41,9 +41,7 @@ try:
except:
from whichcraft import which

-supervise_utility_location = which("supervise")
-if not supervise_utility_location:
- raise FileNotFoundError(errno.ENOENT, "Executable not found in PATH", "supervise")
+supervise_utility_location = '@supervise@/bin/supervise'


def ignore_sigchld():
8 changes: 7 additions & 1 deletion pkgs/development/python-modules/tvdb_api/default.nix
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
, buildPythonPackage
, fetchPypi
, requests-cache
, pytest
}:

buildPythonPackage rec {
@@ -15,8 +16,13 @@ buildPythonPackage rec {

propagatedBuildInputs = [ requests-cache ];

checkInputs = [ pytest ];

# requires network access
doCheck = false;

meta = with stdenv.lib; {
description = "Simple to use TVDB (thetvdb.com) API in Python.";
description = "Simple to use TVDB (thetvdb.com) API in Python";
homepage = "https://github.com/dbr/tvdb_api";
license = licenses.unlicense;
maintainers = with maintainers; [ peterhoeg ];
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/uproot/default.nix
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@
, pytest
, pkgconfig
, lz4
, mock
, requests
, backports_lzma
}:

@@ -22,8 +24,8 @@ buildPythonPackage rec {
sha256 = "1fafe476c26252e4dbd399456323778e76d23dc2f43cf6581a707d1647978610";
};

buildInputs = [ pytestrunner ];
checkInputs = [ pytest pkgconfig lz4 ]
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytest pkgconfig lz4 mock requests ]
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
propagatedBuildInputs = [ numpy cachetools uproot-methods awkward ];