xin/pkgs/kobuddy.nix

64 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ lib
, fetchFromGitHub
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytz
, alembic
, banal
, sqlalchemy
, ...
}:
let
2023-03-17 12:36:44 -06:00
myDataset = buildPythonPackage rec {
pname = "dataset";
version = "1.6.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "pudo";
repo = pname;
rev = "0757b5010b600a66ed07fbb06a0e86c7bb0e09bc";
hash = "sha256-BfIGQvXKlsydV3p93/qLYtbVujTNWqWfMg16/aENHks=";
};
2023-09-12 08:44:05 -06:00
patches = [ ./kobuddy.diff ];
2023-03-17 12:36:44 -06:00
2023-09-12 08:44:05 -06:00
propagatedBuildInputs = [ alembic banal sqlalchemy ];
2023-03-17 12:36:44 -06:00
# checks attempt to import nonexistent module 'test.test' and fail
doCheck = false;
2023-09-12 08:44:05 -06:00
pythonImportsCheck = [ "dataset" ];
2023-03-17 12:36:44 -06:00
meta = with lib; {
description = "Toolkit for Python-based database access";
homepage = "https://dataset.readthedocs.io";
license = licenses.mit;
2023-09-12 08:44:05 -06:00
maintainers = with maintainers; [ xfnw ];
2023-03-17 12:36:44 -06:00
};
};
2023-07-11 09:12:50 -06:00
in
2023-09-12 08:44:05 -06:00
buildPythonPackage rec {
pname = "kobuddy";
version = "0.2.20221023";
2023-07-11 09:12:50 -06:00
2023-09-12 08:44:05 -06:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-2Al1aDx9ymr0Pw+HC2S6mXkKvsDLhM1Oto+urr9i7BY=";
};
2023-02-08 06:27:19 -07:00
2023-09-12 08:44:05 -06:00
doCheck = true;
2023-02-08 06:27:19 -07:00
2023-09-12 08:44:05 -06:00
nativeBuildInputs = [ setuptools-scm ];
2023-02-08 06:27:19 -07:00
2023-09-12 08:44:05 -06:00
propagatedBuildInputs = [ myDataset pytz ];
2023-02-08 06:27:19 -07:00
2023-09-12 08:44:05 -06:00
meta = with lib; {
homepage = "https://github.com/karlicoss/promnesia";
description = "Another piece of your extended mind";
license = licenses.mit;
maintainers = with maintainers; [ qbit ];
};
}