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
53
pkgs/development/python-modules/fixerio/default.nix
Normal file
53
pkgs/development/python-modules/fixerio/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
, httpretty
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fixerio";
|
||||
version = "1.0.0-alpha";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "amatellanes";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "009h1mys175xdyznn5bl980vly40544s4ph1zcgqwg2i2ic93gvb";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
httpretty
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# tests require network access
|
||||
"test_returns_historical_rates_for_symbols_passed_if_both"
|
||||
"test_returns_historical_rates_for_symbols_passed_in_constructor"
|
||||
"test_returns_historical_rates_for_symbols_passed_in_method"
|
||||
"test_returns_latest_rates_for_symbols_passed_in_constructor"
|
||||
"test_returns_latest_rates_for_symbols_passed_in_method"
|
||||
"test_returns_latest_rates_for_symbols_passed_in_method_if_both"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "fixerio" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client for Fixer.io";
|
||||
longDescription = ''
|
||||
Fixer.io is a free JSON API for current and historical foreign
|
||||
exchange rates published by the European Central Bank.
|
||||
'';
|
||||
homepage = "https://github.com/amatellanes/fixerio";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue