nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchurl, 5 nix-update-script, 6 numpy, 7 pandas, 8 python-dateutil, 9 pytz, 10 setuptools, 11 six, 12}: 13 14buildPythonPackage rec { 15 pname = "pandas-ta"; 16 version = "0.3.14b"; 17 pyproject = true; 18 19 src = fetchurl { 20 url = "https://www.pandas-ta.dev/assets/zip/pandas_ta-${version}.tar.gz"; 21 hash = "sha256-D6Na7IMdKBXqMLhxaIqNIKdrKIp74tJswAw1zYwJqZM="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pandas_ta/momentum/squeeze_pro.py \ 26 --replace-fail "import NaN" "import nan" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ 32 numpy 33 pandas 34 python-dateutil 35 pytz 36 setuptools 37 six 38 ]; 39 40 # PyTestCheckHook failing because of missing test dependency. Packages has been tested manually. 41 doCheck = false; 42 43 passthru.updateScript = nix-update-script { }; 44 45 pythonImportsCheck = [ "pandas_ta" ]; 46 47 meta = { 48 description = "Technical Analysis Indicators"; 49 homepage = "https://www.pandas-ta.dev/"; 50 license = lib.licenses.unfree; 51 maintainers = with lib.maintainers; [ derdennisop ]; 52 }; 53}