python3Packages.dasbus: 1.7 -> unstable-11-10-2022

change format to pyproject
add hatchling as a build time dep
test with pytestCheckHook
This commit is contained in:
fortuneteller2k 2023-01-27 21:21:11 +08:00
parent e80e3878b3
commit d28f3a66fc

View File

@ -1,16 +1,20 @@
{ lib, buildPythonPackage, fetchPypi, pygobject3, dbus }:
{ lib, buildPythonPackage, fetchFromGitHub, pygobject3, dbus, hatchling, pytestCheckHook }:
buildPythonPackage rec {
pname = "dasbus";
version = "1.7";
version = "unstable-11-10-2022";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-qIUNhBrf6O5fe7n4LPRJq5tJUNwGM4lwcXGODQA2tvY=";
src = fetchFromGitHub {
owner = "rhinstaller";
repo = pname;
rev = "64b6b4d9e37cd7e0cbf4a7bf75faa7cdbd01086d";
hash = "sha256-TmhhDrfpP+nUErAd7dUb+RtGBRtWwn3bYOoIqa0VRoc=";
};
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [ pygobject3 ];
nativeCheckInputs = [ dbus ];
nativeCheckInputs = [ dbus pytestCheckHook ];
meta = with lib; {
homepage = "https://github.com/rhinstaller/dasbus";