16 buildPythonPackage rec {
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-XuLFLpZbaCj/MHq0+l6GoNqR5nAldAlEJhoO5ioWYTA=";
35 buildInputs = [ zlib ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
42 pythonImportsCheck = [ "pyreadstat" ];
45 export HOME=$(mktemp -d);
51 ${python.interpreter} tests/test_basic.py
57 description = "Module to read SAS, SPSS and Stata files into pandas data frames";
58 homepage = "https://github.com/Roche/pyreadstat";
59 changelog = "https://github.com/Roche/pyreadstat/blob/v${version}/change_log.md";
60 license = licenses.asl20;
61 maintainers = with maintainers; [ swflint ];