So, I’m attempting to get the latest version of KivyMD (2.0.1dev0) from source, because it’s not in nixpkgs. I’m able to pull the source from GitHub here: KivyMD The issue is that this depends on asynckivy which also isn’t in nixpkgs. In trying to manually build asynckivy, I found its GitHub page: asynckivy The issue is that asynckivy has a pyproject.toml that forces “uv_build>=0.9.2,<0.10.0” which is older than the version of uv-build in nixpkgs. And I’m not sure how to deal with that.
Here’s what I’ve got as my derivation so far:
{
lib ,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
kivy,
pillow,
materialyoucolor,
exceptiongroup,
}:
let
asynckivy = buildPythonPackage rec {
pname = "asynckivy";
version = "0.10.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-OJd1nNOpquPC4c40GMvzL1s9wVKmjZe7r3oOLQGqHM8=";
};
pyproject = true;
build-system = [ setuptools ];
};
in
buildPythonPackage rec {
pname = "kivymd";
version = "2.0.1.dev0";
src = fetchFromGitHub {
owner = "kivymd";
repo = "KivyMD";
rev = "master";
hash = "sha256-S6ZTaanYH+V+c9cW76lFiu1q+JVzPf5ejJI58hfrSvQ=";
};
pyproject = true;
build-system = [ setuptools ];
buildInputs = [
kivy
asynckivy
pillow
materialyoucolor
];
}