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
58
pkgs/development/python-modules/ipython-sql/default.nix
Normal file
58
pkgs/development/python-modules/ipython-sql/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, ipython
|
||||
, ipython_genutils
|
||||
, pandas
|
||||
, prettytable
|
||||
, pytest
|
||||
, sqlalchemy
|
||||
, sqlparse
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "ipython-sql";
|
||||
version = "0.4.0";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "catherinedevlin";
|
||||
repo = "ipython-sql";
|
||||
rev = "117764caf099d80100ed4b09fc004b55eed6f121";
|
||||
hash = "sha256-ScQihsvRSnC7VIgy8Tzi1z4x6KIZo0SAeLPvHAVdrfA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace 'prettytable<1' prettytable
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ipython
|
||||
ipython_genutils
|
||||
prettytable
|
||||
sqlalchemy
|
||||
sqlparse
|
||||
];
|
||||
|
||||
checkInputs = [ ipython pandas pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
# running with ipython is required because the tests use objects available
|
||||
# only inside of ipython, for example the global `get_ipython()` function
|
||||
ipython -c 'import pytest; pytest.main()'
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "sql" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Introduces a %sql (or %%sql) magic.";
|
||||
homepage = "https://github.com/catherinedevlin/ipython-sql";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cpcloud ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue