nixpkgs/pkgs/development/python-modules/tcxreader/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

38 lines
706 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "tcxreader";
version = "0.4.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alenrajsp";
repo = "tcxreader";
rev = "v${version}";
hash = "sha256-UJ6F+GcdF0b2gALQWepLyCnWm+6RKBRnBt1eJNoRRzo=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"tcxreader"
];
meta = with lib; {
description = "A reader for Garmins TCX file format";
homepage = "https://github.com/alenrajsp/tcxreader";
license = licenses.mit;
maintainers = with maintainers; [ firefly-cpp ];
};
}