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
49
pkgs/development/python-modules/ovh/default.nix
Normal file
49
pkgs/development/python-modules/ovh/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, nose
|
||||
, requests
|
||||
, yanc
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ovh";
|
||||
version = "1.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-IQzwu0gwfPNPOLQLCO99KL5Hu2094Y+acQBFXVGzHhU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
nose
|
||||
yanc
|
||||
];
|
||||
|
||||
# requires network
|
||||
checkPhase = ''
|
||||
nosetests . \
|
||||
-e test_config_get_conf \
|
||||
-e test_config_get_custom_conf \
|
||||
-e test_endpoints \
|
||||
-e test_init_from_custom_config
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Thin wrapper around OVH's APIs";
|
||||
homepage = "https://github.com/ovh/python-ovh";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = [ lib.maintainers.makefu ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue