summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-snappy/default.nix
blob: 9828982300658defc31947df6251aa48adf1cffc (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,
  cramjam,
  setuptools,
  snappy-cpp,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "python-snappy";
  version = "0.7.3";
  pyproject = true;

  src = fetchPypi {
    pname = "python_snappy";
    inherit version;
    hash = "sha256-QCFsG637LTiseB7LFiodDsQPjul0fmELz+/fp5SGzuM=";
  };

  build-system = [
    cramjam
    setuptools
  ];

  buildInputs = [ snappy-cpp ];

  dependencies = [ cramjam ];

  nativeCheckInputs = [ unittestCheckHook ];

  meta = {
    description = "Python library for the snappy compression library from Google";
    homepage = "https://github.com/intake/python-snappy";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}