summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/milksnake/default.nix
blob: f1d58a12b3e41cae7294b4c613927477d2a62411 (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
39
{
  lib,
  buildPythonPackage,
  fetchPypi,
  fetchpatch,
  cffi,
}:

buildPythonPackage rec {
  pname = "milksnake";
  version = "0.1.5";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "120nprd8lqis7x7zy72536gk2j68f7gxm8gffmx8k4ygifvl7kfz";
  };

  patches = [
    (fetchpatch {
      name = "fix-regex-python-311.patch";
      url = "https://github.com/getsentry/milksnake/commit/421cc1ffab4d76d01366240c087ffb30d63b744c.diff";
      hash = "sha256-U/C4CCX8SEOzVXNpOf4hVy2V3Lh6fUrFkz5z+h191C8=";
    })
  ];

  propagatedBuildInputs = [ cffi ];

  # tests rely on pip/venv
  doCheck = false;

  meta = {
    description = "Python library that extends setuptools for binary extensions";
    homepage = "https://github.com/getsentry/milksnake";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ matthiasbeyer ];
  };
}