depot/third_party/nixpkgs/pkgs/development/python-modules/iterable-io/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

37 lines
848 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "iterable-io";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pR0Ps";
repo = "iterable-io";
rev = "refs/tags/v${version}";
hash = "sha256-+PSINKS7/FeGHYvkOASA5m+1pBpKfURfylZ8CwKijgA=";
};
nativeBuildInputs = [ setuptools ];
pythonImportsCheck = [ "iterableio" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Library to adapt iterables to a file-like interface";
homepage = "https://github.com/pR0Ps/iterable-io";
changelog = "https://github.com/pR0Ps/iterable-io/blob/v${version}/CHANGELOG.md";
license = lib.licenses.lgpl3Only;
maintainers = [ lib.maintainers.mjoerg ];
};
}