mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
33 lines
754 B
Nix
33 lines
754 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-sql";
|
|
version = "1.5.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "python_sql";
|
|
inherit version;
|
|
hash = "sha256-c19SNyGHy5VrGu6MoHADn3O6iRO7i33vlC78FNUGzTY=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|