depot/third_party/nixpkgs/pkgs/development/python-modules/parse/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

36 lines
714 B
Nix

{ lib, fetchFromGitHub
, buildPythonPackage
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "parse";
version = "1.20.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "r1chardj0n3s";
repo = "parse";
rev = "refs/tags/${version}";
hash = "sha256-InYOgqTvMvQ/HWIa0WrJ4M2LL4LL87KwBst8yYnt3dk=";
};
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 ];
};
}