depot/third_party/nixpkgs/pkgs/development/python-modules/python-sql/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

33 lines
754 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "python-sql";
version = "1.5.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "python_sql";
inherit version;
hash = "sha256-93RnHx0IT6a6Q4mJJM3r5O0NAHHfjWCAQKzU8cjYaqM=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "sql" ];
meta = with lib; {
description = "Library to write SQL queries in a pythonic way";
homepage = "https://foss.heptapod.net/tryton/python-sql";
changelog = "https://foss.heptapod.net/tryton/python-sql/-/blob/${version}/CHANGELOG";
license = licenses.bsd3;
maintainers = with maintainers; [ johbo ];
};
}