nixpkgs/pkgs/by-name/py/pyrseas/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.1 KiB
Nix
Raw Normal View History

2022-10-22 02:35:20 +00:00
{ lib, python3Packages, fetchFromGitHub }:
let
2022-10-22 02:35:20 +00:00
pgdbconn = python3Packages.buildPythonPackage rec {
pname = "pgdbconn";
version = "0.8.0";
2022-10-22 02:35:20 +00:00
src = fetchFromGitHub {
owner = "perseas";
repo = "pgdbconn";
2021-01-26 13:37:17 +00:00
rev = "v${version}";
sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
};
2022-10-22 02:35:20 +00:00
# The tests are impure (they try to access a PostgreSQL server)
doCheck = false;
2022-10-22 02:35:20 +00:00
propagatedBuildInputs = with python3Packages; [ psycopg2 pytest ];
};
in
2022-10-22 02:35:20 +00:00
python3Packages.buildPythonApplication rec {
pname = "pyrseas";
2022-10-22 02:35:20 +00:00
version = "0.9.1";
src = fetchFromGitHub {
owner = "perseas";
repo = "Pyrseas";
2022-10-22 02:35:20 +00:00
rev = version;
sha256 = "sha256-+MxnxvbLMxK1Ak+qKpKe3GHbzzC+XHO0eR7rl4ON9H4=";
};
2022-10-22 02:35:20 +00:00
propagatedBuildInputs = with python3Packages; [
psycopg2
pytest
pyyaml
pgdbconn
];
2022-10-22 02:35:20 +00:00
# The tests are impure (they try to access a PostgreSQL server)
doCheck = false;
meta = {
description = "Declarative language to describe PostgreSQL databases";
homepage = "https://perseas.github.io/";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ pmeunier ];
};
}