python3Packages.kivy-garden: fix source

This commit is contained in:
Martin Weinelt 2022-04-14 15:58:07 +02:00
parent 498a4d8feb
commit 50907e3009

View File

@ -1,29 +1,31 @@
{ lib
, buildPythonPackage, fetchPypi
, buildPythonPackage
, fetchFromGitHub
, requests
}:
buildPythonPackage rec {
pname = "kivy-garden";
version = "0.1.5";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-K4N3N46HUB1dJx8z2U8ORMCJiEVyxk+JydYJsfhqJ0g=";
src = fetchFromGitHub {
owner = "kivy-garden";
repo = "garden";
rev = "v${version}";
hash = "sha256-xOMBPFKV7mTa51Q0VKja7b0E509IaWjwlJVlSRVdct8=";
};
propagatedBuildInputs = [ requests ];
pythonImportsCheck = [ "garden" ];
# There are no tests in the Pypi archive and building from source is not
# easily feasible because the build is done using buildozer and multiple
# repositories.
# There are no tests
doCheck = false;
meta = with lib; {
description = "The kivy garden installation script, split into its own package for convenient use in buildozer.";
homepage = "https://pypi.python.org/pypi/kivy-garden";
homepage = "https://github.com/kivy-garden/garden";
license = licenses.mit;
maintainers = with maintainers; [ risson ];
};