1{ 2 lib, 3 fetchFromGitHub, 4 buildPythonPackage, 5 setuptools, 6 numpy, 7 scipy, # optional, allows spline-related features (see patsy's docs) 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "patsy"; 13 version = "1.0.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "pydata"; 18 repo = "patsy"; 19 tag = "v${version}"; 20 hash = "sha256-gtkvFxNzMFiBBiuKhelSSsTilA/fLJSC5QHqDLiRrWE="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 numpy 27 scipy 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "patsy" ]; 33 34 meta = { 35 changelog = "https://github.com/pydata/patsy/releases/tag/v${version}"; 36 description = "Python package for describing statistical models"; 37 homepage = "https://github.com/pydata/patsy"; 38 license = lib.licenses.bsd2; 39 maintainers = with lib.maintainers; [ ilya-kolpakov ]; 40 }; 41}