Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions pkgs/development/python-modules/apswutils/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,

# build-system
setuptools,

# dependencies
apsw,
fastcore,

# tests
pytestCheckHook,
hypothesis,
}:

buildPythonPackage (finalAttrs: {
pname = "apswutils";
version = "0.1.2";
pyproject = true;

src = fetchFromGitHub {
owner = "AnswerDotAI";
repo = "apswutils";
tag = finalAttrs.version;
hash = "sha256-lqtgjQ4nhmcf52mFeXdFxvd8WNsDDR9PEeWAncBX46g=";
};

build-system = [
setuptools
];

dependencies = [
apsw
fastcore
];

nativeCheckInputs = [
pytestCheckHook
hypothesis
];

pythonImportsCheck = [
"apswutils"
];

meta = {
description = "A fork of sqlite-minutils for apsw";
homepage = "https://github.com/AnswerDotAI/apswutils";
changelog = "https://github.com/AnswerDotAI/apswutils/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
})
91 changes: 91 additions & 0 deletions pkgs/development/python-modules/fasthtml/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,

# build-system
setuptools,

# dependencies
beautifulsoup4,
fastcore,
fastlite,
httpx,
itsdangerous,
oauthlib,
python-dateutil,
python-multipart,
starlette,
uvicorn,

# optional-dependencies
ipython,
lxml,
monsterui ? null, # TODO: package
pyjwt,
pysymbol-llm ? null, # TODO: package

# tests
pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
pname = "fasthtml";
version = "0.12.47";
pyproject = true;

src = fetchFromGitHub {
owner = "AnswerDotAI";
repo = "fasthtml";
tag = finalAttrs.version;
hash = "sha256-dlG6pOVsd9RSmy/rgr7lUANRllND4tZDnsOecsI4bh8=";
};

build-system = [
setuptools
];

dependencies = [
beautifulsoup4
fastcore
fastlite
httpx
itsdangerous
oauthlib
python-dateutil
python-multipart
starlette
uvicorn
];

optional-dependencies = {
dev = [
ipython
lxml
monsterui
pyjwt
pysymbol-llm
];
};

nativeCheckInputs = [
pytestCheckHook
];

disabledTests = [
# https://github.com/AnswerDotAI/fasthtml/issues/835
"test_get_toaster_with_typehint"
];

pythonImportsCheck = [
"fasthtml"
];

meta = {
description = "The fastest way to create an HTML app";
homepage = "https://github.com/AnswerDotAI/fasthtml";
changelog = "https://github.com/AnswerDotAI/fasthtml/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
})
49 changes: 49 additions & 0 deletions pkgs/development/python-modules/fastlite/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,

# build-system
setuptools,

# dependencies
fastcore,
apswutils,
}:

buildPythonPackage (finalAttrs: {
pname = "fastlite";
version = "0.2.4";
pyproject = true;

src = fetchFromGitHub {
owner = "AnswerDotAI";
repo = "fastlite";
tag = finalAttrs.version;
hash = "sha256-q2eGP/GRWqgbvWOVuLch33VkYbedeDRsxsnN+xsevPI=";
};

build-system = [
setuptools
];

dependencies = [
fastcore
apswutils
];

# No tests
doCheck = false;

pythonImportsCheck = [
"fastlite"
];

meta = {
description = "A bit of extra usability for sqlite";
homepage = "https://github.com/AnswerDotAI/fastlite";
changelog = "https://github.com/AnswerDotAI/fastlite/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = [ ];
};
})
21 changes: 14 additions & 7 deletions pkgs/development/python-modules/fastprogress/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
fastcore,
numpy,
fasthtml,
ipython,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "fastprogress";
version = "1.1.3";
version = "1.1.5";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-L3Bxvrk84mHdtR1mskOoUXtCFWOgEHSY5Yhe0tkTb8o=";
src = fetchFromGitHub {
owner = "fastai";
repo = "fastprogress";
tag = finalAttrs.version;
hash = "sha256-n4FwOgxYn2JWlF8VwtO7m7mOXg1l27lT/3Rd+GeDlvw=";
};

build-system = [ setuptools ];

dependencies = [
fastcore
numpy
fasthtml
ipython
];

# no real tests
Expand All @@ -30,8 +36,9 @@ buildPythonPackage rec {

meta = {
homepage = "https://github.com/fastai/fastprogress";
changelog = "https://github.com/AnswerDotAI/fastprogress/blob/${finalAttrs.src.tag}/CHANGELOG.md";
description = "Simple and flexible progress bar for Jupyter Notebook and console";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ris ];
};
}
})
6 changes: 6 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,8 @@ self: super: with self; {

apsw = callPackage ../development/python-modules/apsw { };

apswutils = callPackage ../development/python-modules/apswutils { };

apsystems-ez1 = callPackage ../development/python-modules/apsystems-ez1 { };

apt-repo = callPackage ../development/python-modules/apt-repo { };
Expand Down Expand Up @@ -5349,12 +5351,16 @@ self: super: with self; {

fastgit = callPackage ../development/python-modules/fastgit { };

fasthtml = callPackage ../development/python-modules/fasthtml { };

fastimport = callPackage ../development/python-modules/fastimport { };

fastjet = callPackage ../development/python-modules/fastjet { };

fastjsonschema = callPackage ../development/python-modules/fastjsonschema { };

fastlite = callPackage ../development/python-modules/fastlite { };

fastmcp = callPackage ../development/python-modules/fastmcp { };

fastmri = callPackage ../development/python-modules/fastmri { };
Expand Down
Loading