- add pythonImportsCheck - disable on older Python releasesmain
parent
9ad05a3835
commit
4381a2796d
@ -1,18 +1,34 @@ |
||||
{ lib, fetchPypi, buildPythonPackage }: |
||||
{ 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; |
||||
sha256 = "sha256-b+dkCC9IiR2Ffqfm+kJfpU8TUx3fa4nyTAmOZGrRtLY="; |
||||
hash = "sha256-b+dkCC9IiR2Ffqfm+kJfpU8TUx3fa4nyTAmOZGrRtLY="; |
||||
}; |
||||
|
||||
meta = { |
||||
homepage = "https://python-sql.tryton.org/"; |
||||
description = "A library to write SQL queries in a pythonic way"; |
||||
maintainers = with lib.maintainers; [ johbo ]; |
||||
license = lib.licenses.bsd3; |
||||
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 ]; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue