Fix epy build failure by adding dependency directly that was removed from python standard library [1]. [1]: https://peps.python.org/pep-0594/#imghdr
35 lines
695 B
Nix
35 lines
695 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchPypi,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "epy";
|
|
version = "2023.6.11";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "epy_reader";
|
|
hash = "sha256-gel503e8DXjrMJK9lpAZ6GxQsrahKX+SjiyRwKbiJUY=";
|
|
};
|
|
|
|
dependencies = [ python3Packages.standard-imghdr ];
|
|
|
|
nativeBuildInputs = [ python3Packages.poetry-core ];
|
|
|
|
pythonImportsCheck = [
|
|
"epy_reader.cli"
|
|
"epy_reader.reader"
|
|
];
|
|
|
|
meta = {
|
|
description = "CLI Ebook Reader";
|
|
homepage = "https://github.com/wustho/epy";
|
|
mainProgram = "epy";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = with lib.maintainers; [ perstark ];
|
|
};
|
|
}
|