2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchpatch2,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
buildPythonPackage {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "yarg";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.1.9-unstable-2022-02-06";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kura";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "yarg";
|
|
|
|
# Latest commit to yarg, which is more up-to-date than the latest release.
|
|
|
|
rev = "46e2371906bde6e19116664d4841abab414c54fd";
|
|
|
|
hash = "sha256-N/NDc9GqqwqU9vD1BU6udthzewBMDji9Np/HKRffLxI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
patches = [
|
|
|
|
# Python 3.12 compatibility patch
|
|
|
|
(fetchpatch2 {
|
|
|
|
url = "https://github.com/kura/yarg/commit/8d5532e4da11ab0e9a4453658cf0591dcf80a616.patch?full_index=1";
|
|
|
|
hash = "sha256-2lbOzEfWTtoZYuRjCQJAFeYUsJoQhhEohflvYOwLXnI=";
|
|
|
|
})
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [ requests ];
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Easy to use PyPI client";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://yarg.readthedocs.io";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ psyanticy ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|