about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mohawk/default.nix
blob: 5054fcae7b79ef83587881b2cee327afc73911d2 (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
42
43
44
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchpatch2,
  pytestCheckHook,
  six,
  setuptools,
}:

buildPythonPackage rec {
  pname = "mohawk";
  version = "1.1.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-0qDjqxCiCcx56V4o8t1UvUpz/RmY/+J7e6D5Yra+lyM=";
  };

  patches = [
    (fetchpatch2 {
      # https://github.com/kumar303/mohawk/pull/59
      name = "nose-to-pytest.patch";
      url = "https://github.com/kumar303/mohawk/compare/b7899166880e890f01cf2531b5686094ba08df8f...66157c7efbf6b0d18c30a9ffe5dfd84bef27bd3a.patch";
      hash = "sha256-w3sP5XeBqOwoPGsWzYET4djYwuKPaS4OOlC3HBPD0NI=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [ six ];

  nativeCheckInputs = [ pytestCheckHook ];

  pytestFlagsArray = [ "mohawk/tests.py" ];

  meta = {
    description = "Python library for Hawk HTTP authorization";
    homepage = "https://github.com/kumar303/mohawk";
    license = lib.licenses.mpl20;
    maintainers = [ ];
  };
}