2022-10-30 15:09:59 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2022-10-30 15:09:59 +00:00
|
|
|
pgdbconn = python3Packages.buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pgdbconn";
|
|
|
|
version = "0.8.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "perseas";
|
|
|
|
repo = "pgdbconn";
|
2021-02-13 14:23:35 +00:00
|
|
|
rev = "v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
|
|
|
|
};
|
2022-10-30 15:09:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# The tests are impure (they try to access a PostgreSQL server)
|
|
|
|
doCheck = false;
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ psycopg2 pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pyrseas";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "0.9.1";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "perseas";
|
|
|
|
repo = "Pyrseas";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-+MxnxvbLMxK1Ak+qKpKe3GHbzzC+XHO0eR7rl4ON9H4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
psycopg2
|
|
|
|
pytest
|
|
|
|
pyyaml
|
2020-04-24 23:36:52 +00:00
|
|
|
pgdbconn
|
|
|
|
];
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
# The tests are impure (they try to access a PostgreSQL server)
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A declarative language to describe PostgreSQL databases";
|
|
|
|
homepage = "https://perseas.github.io/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ pmeunier ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|