depot/third_party/nixpkgs/pkgs/development/python-modules/simplesqlite/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

46 lines
926 B
Nix

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