2022-01-11 23:40:02 +00:00
|
|
|
{ lib, python2Packages, fetchFromGitHub }:
|
2018-01-29 17:17:04 +00:00
|
|
|
|
|
|
|
let
|
2022-01-11 23:40:02 +00:00
|
|
|
pgdbconn = python2Packages.buildPythonPackage rec {
|
2018-01-29 17:17:04 +00:00
|
|
|
pname = "pgdbconn";
|
|
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "perseas";
|
|
|
|
repo = "pgdbconn";
|
2021-01-26 13:37:17 +00:00
|
|
|
rev = "v${version}";
|
2018-01-29 17:17:04 +00:00
|
|
|
sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
|
|
|
|
};
|
|
|
|
# The tests are impure (they try to access a PostgreSQL server)
|
|
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [
|
2022-01-11 23:40:02 +00:00
|
|
|
python2Packages.psycopg2
|
|
|
|
python2Packages.pytest
|
2018-01-29 17:17:04 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2022-01-11 23:40:02 +00:00
|
|
|
python2Packages.buildPythonApplication {
|
2018-01-29 17:17:04 +00:00
|
|
|
pname = "pyrseas";
|
|
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "perseas";
|
|
|
|
repo = "Pyrseas";
|
|
|
|
rev = "2e9be763e61168cf20d28bd69010dc5875bd7b97";
|
|
|
|
sha256 = "1h9vahplqh0rzqjsdq64qqar6hj1bpbc6nl1pqwwgca56385br8r";
|
|
|
|
};
|
|
|
|
# The tests are impure (they try to access a PostgreSQL server)
|
|
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [
|
2022-01-11 23:40:02 +00:00
|
|
|
python2Packages.psycopg2
|
|
|
|
python2Packages.pytest
|
|
|
|
python2Packages.pyyaml
|
2018-01-29 17:17:04 +00:00
|
|
|
pgdbconn
|
|
|
|
];
|
|
|
|
meta = {
|
|
|
|
description = "A declarative language to describe PostgreSQL databases";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://perseas.github.io/";
|
2021-01-23 12:26:19 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ pmeunier ];
|
2018-01-29 17:17:04 +00:00
|
|
|
};
|
|
|
|
}
|