nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 ipython,
7 ipython-genutils,
8 prettytable,
9 six,
10 sqlalchemy,
11 sqlparse,
12}:
13buildPythonPackage rec {
14 pname = "ipython-sql";
15 version = "0.5.0";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-PbPOf5qV369Dh2+oCxa9u5oE3guhIELKsT6fWW/P/b4=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 ipython
27 ipython-genutils
28 prettytable
29 six
30 sqlalchemy
31 sqlparse
32 ];
33
34 # pypi tarball has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [ "sql" ];
38
39 meta = {
40 description = "Introduces a %sql (or %%sql) magic";
41 homepage = "https://github.com/catherinedevlin/ipython-sql";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ cpcloud ];
44 };
45}