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
55
pkgs/development/python-modules/kaggle/default.nix
Normal file
55
pkgs/development/python-modules/kaggle/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ buildPythonPackage
|
||||
, certifi
|
||||
, fetchPypi
|
||||
, lib
|
||||
, python-dateutil
|
||||
, python-slugify
|
||||
, six
|
||||
, requests
|
||||
, tqdm
|
||||
, urllib3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kaggle";
|
||||
version = "1.5.12";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b4d87d107bff743aaa805c2b382c3661c4c175cdb159656d4972be2a9cef42cb";
|
||||
};
|
||||
|
||||
# The version bounds in the setup.py file are unnecessarily restrictive.
|
||||
# They have both python-slugify and slugify, don't know why
|
||||
patchPhase = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'urllib3 >= 1.21.1, < 1.25' 'urllib3' \
|
||||
--replace " 'slugify'," " "
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
certifi
|
||||
python-dateutil
|
||||
python-slugify
|
||||
requests
|
||||
six
|
||||
tqdm
|
||||
urllib3
|
||||
];
|
||||
|
||||
# Tests try to access the network.
|
||||
checkPhase = ''
|
||||
export HOME="$TMP"
|
||||
mkdir -p "$HOME/.kaggle/"
|
||||
echo '{"username":"foobar","key":"00000000000000000000000000000000"}' > "$HOME/.kaggle/kaggle.json"
|
||||
$out/bin/kaggle --help > /dev/null
|
||||
'';
|
||||
pythonImportsCheck = [ "kaggle" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Official API for https://www.kaggle.com, accessible using a command line tool implemented in Python 3";
|
||||
homepage = "https://github.com/Kaggle/kaggle-api";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ cdepillabout ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue