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: 9e70e009200a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6d90e6c7aa75
Choose a head ref
  • 3 commits
  • 4 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
    
    (cherry picked from commit 654e6ec)
    Robert Schütz committed Mar 5, 2019
    Copy the full SHA
    589d397 View commit details
  2. python.pkgs.uproot: update checkInputs

    (cherry picked from commit 1435d45)
    Robert Schütz committed Mar 5, 2019
    Copy the full SHA
    75a40bb View commit details
  3. python.pkgs.supervise_api: use patch to specify path to supervise

    (cherry picked from commit b36dc66)
    Robert Schütz committed Mar 5, 2019
    Copy the full SHA
    6d90e6c 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():
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 ];