nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

pythonPackages.dynd: refactor move to python-modules

authored by

Chris Ostrouchov and committed by
Frederik Rietdijk
f320b845 5934b25c

+44 -32
+43
pkgs/development/python-modules/dynd/default.nix
··· 1 + { stdenv 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , isPyPy 5 + , isPy3k 6 + , cython 7 + , numpy 8 + , pkgs 9 + }: 10 + 11 + buildPythonPackage rec { 12 + version = "0.7.2"; 13 + pname = "dynd"; 14 + disabled = isPyPy || !isPy3k; # tests fail on python2, 2018-04-11 15 + 16 + src = pkgs.fetchFromGitHub { 17 + owner = "libdynd"; 18 + repo = "dynd-python"; 19 + rev = "v${version}"; 20 + sha256 = "19igd6ibf9araqhq9bxmzbzdz05vp089zxvddkiik3b5gb7l17nh"; 21 + }; 22 + 23 + # setup.py invokes git on build but we're fetching a tarball, so 24 + # can't retrieve git version. We hardcode: 25 + preConfigure = '' 26 + substituteInPlace setup.py --replace "ver = check_output(['git', 'describe', '--dirty'," "ver = '${version}'" 27 + substituteInPlace setup.py --replace "'--always', '--match', 'v*']).decode('ascii').strip('\n')" "" 28 + ''; 29 + 30 + # Python 3 works but has a broken import test that I couldn't 31 + # figure out. 32 + doCheck = !isPy3k; 33 + buildInputs = [ pkgs.cmake pkgs.libdynd.dev cython ]; 34 + propagatedBuildInputs = [ numpy pkgs.libdynd ]; 35 + 36 + meta = with stdenv.lib; { 37 + homepage = http://libdynd.org; 38 + license = licenses.bsd2; 39 + description = "Python exposure of dynd"; 40 + maintainers = with maintainers; [ teh ]; 41 + }; 42 + 43 + }
+1 -32
pkgs/top-level/python-packages.nix
··· 2968 2968 2969 2969 nwdiag = callPackage ../development/python-modules/nwdiag { }; 2970 2970 2971 - dynd = buildPythonPackage rec { 2972 - version = "0.7.2"; 2973 - name = "dynd-${version}"; 2974 - disabled = isPyPy || !isPy3k; # tests fail on python2, 2018-04-11 2975 - 2976 - src = pkgs.fetchFromGitHub { 2977 - owner = "libdynd"; 2978 - repo = "dynd-python"; 2979 - rev = "v${version}"; 2980 - sha256 = "19igd6ibf9araqhq9bxmzbzdz05vp089zxvddkiik3b5gb7l17nh"; 2981 - }; 2982 - 2983 - # setup.py invokes git on build but we're fetching a tarball, so 2984 - # can't retrieve git version. We hardcode: 2985 - preConfigure = '' 2986 - substituteInPlace setup.py --replace "ver = check_output(['git', 'describe', '--dirty'," "ver = '${version}'" 2987 - substituteInPlace setup.py --replace "'--always', '--match', 'v*']).decode('ascii').strip('\n')" "" 2988 - ''; 2989 - 2990 - # Python 3 works but has a broken import test that I couldn't 2991 - # figure out. 2992 - doCheck = !isPy3k; 2993 - buildInputs = with pkgs; [ cmake libdynd.dev self.cython ]; 2994 - propagatedBuildInputs = with self; [ numpy pkgs.libdynd ]; 2995 - 2996 - meta = { 2997 - homepage = http://libdynd.org; 2998 - license = licenses.bsd2; 2999 - description = "Python exposure of dynd"; 3000 - maintainers = with maintainers; [ teh ]; 3001 - }; 3002 - }; 2971 + dynd = callPackage ../development/python-modules/dynd { }; 3003 2972 3004 2973 langcodes = callPackage ../development/python-modules/langcodes { }; 3005 2974