summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyreadstat/default.nix
blob: 499aa97db8c770dc5c292723ef9b8eb7bf2e8848 (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
{ lib, buildPythonPackage, fetchFromGitHub, cython, zlib, pandas, readstat }:

buildPythonPackage rec {
  pname = "pyreadstat";
  version = "1.1.9";

  src = fetchFromGitHub {
    owner = "Roche";
    repo = "pyreadstat";
    rev = "v${version}";
    sha256 = "16aa16ybh3ikmlxsg8zm19x9k6r4gpd0sxqagv318w76jjyw1nrs";
  };

  nativeBuildInputs = [
    cython
  ];

  buildInputs = [
    zlib
  ];

  propagatedBuildInputs = [
    readstat
    pandas
  ];

  meta = {
    homepage = "https://github.com/Roche/pyreadstat";
    description = "Python package to read SAS, SPSS and Stata files into pandas data frames using the readstat C library";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ swflint ];
  };

}