Merge pull request #212957 from fortuneteller2k/dasbus

fix https://github.com/NixOS/nixpkgs/issues/212879
This commit is contained in:
Sandro 2023-01-29 16:29:02 +01:00 committed by GitHub
commit 50739b3c0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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";