nixpkgs/pkgs/development/python-modules/python-sql/default.nix
Fabian Affolter 4381a2796d
python310Packages.python-sql: switch to pytestCheckHook
- add pythonImportsCheck
- disable on older Python releases
2022-05-03 19:13:39 +02:00

35 lines
635 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-sql";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-b+dkCC9IiR2Ffqfm+kJfpU8TUx3fa4nyTAmOZGrRtLY=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"sql"
];
meta = with lib; {
description = "Library to write SQL queries in a pythonic way";
homepage = "https://pypi.org/project/python-sql/";
license = licenses.bsd3;
maintainers = with maintainers; [ johbo ];
};
}