2023-09-15 14:06:39 +02:00
|
|
|
{ lib, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools
|
|
|
|
, pytestCheckHook
|
2017-08-23 21:32:24 -05:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parse";
|
2024-03-08 02:41:23 +01:00
|
|
|
version = "1.20.1";
|
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-03-08 02:41:23 +01:00
|
|
|
hash = "sha256-FAAs39peR+Ibv0RKLrcnY2w0Z2EjVYyZ8U4HcbjTiew=";
|
2017-08-23 21:32:24 -05:00
|
|
|
};
|
|
|
|
|
2023-12-03 00:01:48 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm .pytest.ini
|
|
|
|
'';
|
|
|
|
|
2023-09-15 14:06:39 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|