nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 passlib,
6 python-dateutil,
7 scramp,
8 hatchling,
9 versioningit,
10}:
11
12buildPythonPackage rec {
13 pname = "pg8000";
14 version = "1.31.5";
15 pyproject = true;
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-RuuwO+UrenfAPHJcedosooHW6PWVd8pmsXyQCWGMrng=";
20 };
21
22 build-system = [
23 hatchling
24 versioningit
25 ];
26
27 dependencies = [
28 passlib
29 python-dateutil
30 scramp
31 ];
32
33 # Tests require a running PostgreSQL instance
34 doCheck = false;
35
36 pythonImportsCheck = [ "pg8000" ];
37
38 meta = {
39 description = "Python driver for PostgreSQL";
40 homepage = "https://github.com/tlocke/pg8000";
41 changelog = "https://github.com/tlocke/pg8000#release-notes";
42 license = with lib.licenses; [ bsd3 ];
43 maintainers = [ ];
44 platforms = lib.platforms.unix;
45 };
46}