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

54 lines
1 KiB
Nix

{ lib
, atomicwrites
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "fpyutils";
version = "3.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "frnmst";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-cmCD8uKPX/7Ak6jAqzCvDqR1FgH09GaLfLTZdBQB+bs=";
};
propagatedBuildInputs = [
atomicwrites
requests
];
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"fpyutils/tests/*.py"
];
disabledTests = [
# Don't run test which requires bash
"test_execute_command_live_output"
];
pythonImportsCheck = [
"fpyutils"
];
meta = with lib; {
description = "Collection of useful non-standard Python functions";
homepage = "https://github.com/frnmst/fpyutils";
changelog = "https://blog.franco.net.eu.org/software/fpyutils-${version}/release.html";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}