Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / apsw / default.nix
blob41eb2ade77edac5a686c374ff19a3fecb42db375
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   python,
6   pythonOlder,
7   setuptools,
8   sqlite,
9 }:
11 buildPythonPackage rec {
12   pname = "apsw";
13   version = "3.45.3.0";
14   pyproject = true;
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "rogerbinns";
20     repo = "apsw";
21     rev = "refs/tags/${version}";
22     hash = "sha256-7z9JXJn2a6RJAc+7KrkzzScrNmbb06ud6L1rBinzkP8=";
23   };
25   build-system = [ setuptools ];
27   buildInputs = [ sqlite ];
30   # Project uses custom test setup to exclude some tests by default, so using pytest
31   # requires more maintenance
32   # https://github.com/rogerbinns/apsw/issues/335
33   checkPhase = ''
34     ${python.interpreter} setup.py test
35   '';
37   pythonImportsCheck = [ "apsw" ];
39   meta = with lib; {
40     changelog = "https://github.com/rogerbinns/apsw/blob/${src.rev}/doc/changes.rst";
41     description = "A Python wrapper for the SQLite embedded relational database engine";
42     homepage = "https://github.com/rogerbinns/apsw";
43     license = licenses.zlib;
44     maintainers = with maintainers; [ gador ];
45   };