about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/parse/default.nix
blob: 9c6272e94a5cdeb9d27e841d22c9b6663f6511cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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 ];
  };
}