nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, psycopg2
6, click
7, configobj
8, sqlparse
9}:
10
11buildPythonPackage rec {
12 pname = "pgspecial";
13 version = "1.13.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-1dq5ZpCQgnWRbcLGIu+uIX8ULggWX6NmlJ1By8VlhwE=";
18 };
19
20 propagatedBuildInputs = [
21 click
22 sqlparse
23 psycopg2
24 ];
25
26 checkInputs = [
27 configobj
28 pytestCheckHook
29 ];
30
31 disabledTests = [
32 # requires a postgresql server
33 "test_slash_dp_pattern_schema"
34 ];
35
36 meta = with lib; {
37 description = "Meta-commands handler for Postgres Database";
38 homepage = "https://pypi.python.org/pypi/pgspecial";
39 license = licenses.bsd3;
40 };
41}