mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib, python3Packages, fetchFromGitHub }:
|
|
|
|
let
|
|
pgdbconn = python3Packages.buildPythonPackage rec {
|
|
pname = "pgdbconn";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "perseas";
|
|
repo = "pgdbconn";
|
|
rev = "v${version}";
|
|
sha256 = "09r4idk5kmqi3yig7ip61r6js8blnmac5n4q32cdcbp1rcwzdn6z";
|
|
};
|
|
|
|
# The tests are impure (they try to access a PostgreSQL server)
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = with python3Packages; [ psycopg2 pytest ];
|
|
};
|
|
in
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "pyrseas";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "perseas";
|
|
repo = "Pyrseas";
|
|
rev = version;
|
|
sha256 = "sha256-+MxnxvbLMxK1Ak+qKpKe3GHbzzC+XHO0eR7rl4ON9H4=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
psycopg2
|
|
pytest
|
|
pyyaml
|
|
pgdbconn
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|