nixpkgs/pkgs/development/python-modules/python-ev3dev2/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

39 lines
847 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, pillow
}:
buildPythonPackage rec {
pname = "python-ev3dev2";
version = "2.1.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "ev3dev";
repo = "ev3dev-lang-python";
rev = version;
sha256 = "XxsiQs3k5xKb+3RewARbvBbxaztdvdq3w5ZMgTq+kRc=";
fetchSubmodules = true;
};
postPatch = ''
echo "${version}" > RELEASE-VERSION
'';
propagatedBuildInputs = [ pillow ];
checkPhase = ''
chmod -R g+rw ./tests/fake-sys/devices/**/*
${python.interpreter} -W ignore::ResourceWarning tests/api_tests.py
'';
meta = with lib; {
description = "Python language bindings for ev3dev";
homepage = "https://github.com/ev3dev/ev3dev-lang-python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ emilytrau ];
};
}