uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/development/python-modules/seabreeze/default.nix
Normal file
71
pkgs/development/python-modules/seabreeze/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, cython
|
||||
, git
|
||||
, pkgconfig
|
||||
, setuptools-scm
|
||||
, future
|
||||
, numpy
|
||||
, pyusb
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, zipp
|
||||
}:
|
||||
|
||||
## Usage
|
||||
# In NixOS, add the package to services.udev.packages for non-root plugdev
|
||||
# users to get device access permission:
|
||||
# services.udev.packages = [ pkgs.python3Packages.seabreeze ];
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "seabreeze";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ap--";
|
||||
repo = "python-seabreeze";
|
||||
rev = "v${version}";
|
||||
sha256 = "1hm9aalpb9sdp8s7ckn75xvyiacp5678pv9maybm5nz0z2h29ibq";
|
||||
leaveDotGit = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace '"pytest-runner",' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
git
|
||||
pkgconfig
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
future
|
||||
numpy
|
||||
pyusb
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/etc/udev/rules.d
|
||||
cp os_support/10-oceanoptics.rules $out/etc/udev/rules.d/10-oceanoptics.rules
|
||||
'';
|
||||
|
||||
# few backends enabled, but still some tests
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
mock
|
||||
zipp
|
||||
];
|
||||
|
||||
setupPyBuildFlags = [ "--without-cseabreeze" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ap--/python-seabreeze";
|
||||
description = "A python library to access Ocean Optics spectrometers";
|
||||
maintainers = [];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue