nixpkgs/pkgs/development/python-modules/simplesqlite/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
937 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
dataproperty,
mbstrdecoder,
pathvalidate,
sqliteschema,
setuptools,
tabledata,
typepy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "SimpleSQLite";
version = "1.5.4";
pyproject = true;
src = fetchFromGitHub {
owner = "thombashi";
repo = "SimpleSQLite";
tag = "v${version}";
hash = "sha256-PObyZmmECxp6keRymYFGi4Uf07yNHu6rUIqSrRx2bPE=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
dataproperty
mbstrdecoder
pathvalidate
sqliteschema
tabledata
typepy
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "simplesqlite" ];
meta = {
description = "Python library to simplify SQLite database operations";
homepage = "https://github.com/thombashi/simplesqlite";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ henrirosten ];
};
}