nixpkgs/pkgs/development/python-modules/pystemd/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

39 lines
869 B
Nix

{ stdenv
, buildPythonPackage
, lib
, python
, systemd
, pytest
, mock
, pkg-config }:
buildPythonPackage rec {
pname = "pystemd";
version = "0.10.0";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-10qBS/2gEIXbGorZC+PLJ9ryOlGrawPn4p7IEfoq6Fk=";
};
disabled = python.pythonOlder "3.4";
buildInputs = [ systemd ];
nativeBuildInputs = [ pkg-config ];
nativeCheckInputs = [ pytest mock ];
checkPhase = "pytest tests";
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
description = ''
Thin Cython-based wrapper on top of libsystemd, focused on exposing the
dbus API via sd-bus in an automated and easy to consume way
'';
homepage = "https://github.com/facebookincubator/pystemd/";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ flokli ];
};
}