
If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
37 lines
848 B
Nix
37 lines
848 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
buildPythonPackage ? null,
|
|
}:
|
|
|
|
let
|
|
mkDerivation =
|
|
if builtins.isNull buildPythonPackage then stdenv.mkDerivation else buildPythonPackage;
|
|
in
|
|
mkDerivation rec {
|
|
pname = "pigpio";
|
|
version = "79";
|
|
format = if buildPythonPackage == null then null else "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joan2937";
|
|
repo = "pigpio";
|
|
tag = "v${version}";
|
|
hash = "sha256-Z+SwUlBbtWtnbjTe0IghR3gIKS43ZziN0amYtmXy7HE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
meta = {
|
|
description = "C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO)";
|
|
homepage = "https://github.com/joan2937/pigpio";
|
|
license = lib.licenses.unlicense;
|
|
maintainers = with lib.maintainers; [ doronbehar ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|