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
47
pkgs/development/python-modules/pyxnat/default.nix
Normal file
47
pkgs/development/python-modules/pyxnat/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, nose
|
||||
, lxml
|
||||
, requests
|
||||
, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyxnat";
|
||||
version = "1.4";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "22524120d744b50d25ef6bfc7052637e4ead9e2afac92563231ec89848f5adf5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
lxml
|
||||
requests
|
||||
six
|
||||
];
|
||||
|
||||
# future is not used, and pathlib is installed part of python38+
|
||||
# w/o an external package
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "pathlib>=1.0" "" \
|
||||
--replace "future>=0.16" ""
|
||||
'';
|
||||
|
||||
checkInputs = [ nose ];
|
||||
checkPhase = "nosetests pyxnat/tests";
|
||||
doCheck = false; # requires a docker container running an XNAT server
|
||||
|
||||
pythonImportsCheck = [ "pyxnat" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pyxnat.github.io/pyxnat";
|
||||
description = "Python API to XNAT";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue