2024-05-22 16:01:06 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
2017-08-23 21:32:24 -05:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parse";
|
2024-06-19 05:06:45 +02:00
|
|
|
version = "1.20.2";
|
2023-09-15 14:06:39 +02:00
|
|
|
format = "pyproject";
|
2017-08-23 21:32:24 -05:00
|
|
|
|
2023-09-15 14:06:39 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "r1chardj0n3s";
|
|
|
|
repo = "parse";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-19 05:06:45 +02:00
|
|
|
hash = "sha256-i/H3E/Z8vqt2jLS8BaVHJuD2Fbi7TP7EeOjXAJ16bWg=";
|
2017-08-23 21:32:24 -05:00
|
|
|
};
|
|
|
|
|
2023-12-03 00:01:48 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm .pytest.ini
|
|
|
|
'';
|
|
|
|
|
2024-05-22 16:01:06 +02:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-09-15 14:06:39 +02:00
|
|
|
|
2024-05-22 16:01:06 +02:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2017-08-23 21:32:24 -05:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-03-31 21:11:51 -04:00
|
|
|
homepage = "https://github.com/r1chardj0n3s/parse";
|
2017-08-23 21:32:24 -05:00
|
|
|
description = "parse() is the opposite of format()";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ alunduil ];
|
|
|
|
};
|
|
|
|
}
|