summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/osrparse/default.nix
blob: 2100dc3117903d80524f8fc2e89d53ba0686eeea (plain)
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
37
38
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hypothesis,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "osrparse";
  version = "7.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kszlim";
    repo = "osu-replay-parser";
    tag = "v${version}";
    hash = "sha256-MBE4z1SDkr0YA5ommF+WZyR2N67Y1/xmDhxrTrUhQJk=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  pythonImportsCheck = [ "osrparse" ];

  meta = {
    description = "Parser for osr (osu! replays) file format";
    homepage = "https://github.com/kszlim/osu-replay-parser";
    changelog = "https://github.com/kszlim/osu-replay-parser/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ wulpine ];
  };
}