depot/third_party/nixpkgs/pkgs/development/python-modules/parse/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
710 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "parse";
version = "1.20.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "r1chardj0n3s";
repo = "parse";
rev = "refs/tags/${version}";
hash = "sha256-i/H3E/Z8vqt2jLS8BaVHJuD2Fbi7TP7EeOjXAJ16bWg=";
};
postPatch = ''
rm .pytest.ini
'';
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://github.com/r1chardj0n3s/parse";
description = "parse() is the opposite of format()";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ alunduil ];
};
}