about summary refs log tree commit diff
path: root/pkgs/development/python-modules/sigparse/default.nix
blob: 1c3fd7330f8012d3236d28915fa85f2141db11ab (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
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  pytestCheckHook,
  fetchpatch
}:

buildPythonPackage rec {
  pname = "sigparse";
  version = "3.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Lunarmagpie";
    repo = "sigparse";
    rev = "refs/tags/v${version}";
    hash = "sha256-VzWDqplYgwrJXXd5IUzEIp0YRuofybqmGrNKPaGqQFM=";
  };

  patches = [
    # pyproject.toml version file is set as 1.0.0
    (fetchpatch {
      url = "https://github.com/Lunarmagpie/sigparse/pull/14/commits/44780382410bc6913bdd8ff7e92948078adb736c.patch";
      hash = "sha256-3EOkdBQDBodMBp4ENdvquJlRvAAywQhdWAX4dWFmhL0=";
    })
  ];

  build-system = [ poetry-core ];
  pythonImportsCheck = [ "sigparse" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Backports python 3.10 typing features into 3.7, 3.8, and 3.9";
    license = licenses.mit;
    homepage = "https://github.com/Lunarmagpie/sigparse";
    maintainers = with maintainers; [ sigmanificient ];
  };
}