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
41
pkgs/development/python-modules/geoip2/default.nix
Normal file
41
pkgs/development/python-modules/geoip2/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ buildPythonPackage, lib, fetchPypi, pythonOlder
|
||||
, aiohttp
|
||||
, maxminddb
|
||||
, mocket
|
||||
, requests
|
||||
, requests-mock
|
||||
, urllib3
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.5.0";
|
||||
pname = "geoip2";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b542252e87eb40adc3a2fc0f4e84b514c4c5e04ed46923a3a74d509f25f3103a";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace requirements.txt --replace "requests>=2.24.0,<3.0.0" "requests"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ aiohttp maxminddb requests urllib3 ];
|
||||
|
||||
checkInputs = [
|
||||
mocket
|
||||
requests-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "geoip2" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "GeoIP2 webservice client and database reader";
|
||||
homepage = "https://github.com/maxmind/GeoIP2-python";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue