52 lines
998 B
Nix
52 lines
998 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
pythonOlder,
|
||
|
|
||
|
# build-system
|
||
|
cython,
|
||
|
poetry-core,
|
||
|
setuptools,
|
||
|
|
||
|
# checks
|
||
|
pytestCheckHook,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "convertertools";
|
||
|
version = "0.5.0";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.10";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "bluetooth-devices";
|
||
|
repo = "convertertools";
|
||
|
rev = "v${version}";
|
||
|
hash = "sha256-g4dSJjogMBC8wqvbYDjDP6YihxuG7PQn/jwrrBFOt80=";
|
||
|
};
|
||
|
|
||
|
postPatch = ''
|
||
|
sed -i "/--cov/d" pyproject.toml
|
||
|
'';
|
||
|
|
||
|
build-system = [
|
||
|
cython
|
||
|
poetry-core
|
||
|
setuptools
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||
|
|
||
|
pythonImportsCheck = [ "convertertools" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Tools for converting python data types";
|
||
|
homepage = "https://github.com/bluetooth-devices/convertertools";
|
||
|
changelog = "https://github.com/bluetooth-devices/convertertools/blob/${src.rev}/CHANGELOG.md";
|
||
|
license = licenses.mit;
|
||
|
maintainers = [ ];
|
||
|
};
|
||
|
}
|