nixpkgs/pkgs/development/python-modules/adafruit-platformdetect/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

40 lines
894 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pythonOlder
}:
buildPythonPackage rec {
pname = "adafruit-platformdetect";
version = "3.57.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Adafruit-PlatformDetect";
inherit version;
hash = "sha256-tw95VnxsK57KBMw0fzzgJnFe8O8Ef0rQ9qBMIeYrkHQ=";
};
nativeBuildInputs = [
setuptools-scm
];
# Project has not published tests yet
doCheck = false;
pythonImportsCheck = [
"adafruit_platformdetect"
];
meta = with lib; {
description = "Platform detection for use by Adafruit libraries";
homepage = "https://github.com/adafruit/Adafruit_Python_PlatformDetect";
changelog = "https://github.com/adafruit/Adafruit_Python_PlatformDetect/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}