mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
refactor cython into pythonPackages, fixes #1803
This commit is contained in:
parent
4e957b075e
commit
9019998576
@ -1,21 +0,0 @@
|
||||
{ stdenv, fetchurl, python, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "cython-0.20";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.cython.org/release/Cython-0.20.tar.gz;
|
||||
sha256 = "1a3m7zhw8mdyr95fwx7n1scrz82drr433i99dzm1n9dxi0cx2qah";
|
||||
};
|
||||
|
||||
buildPhase = "python setup.py build --build-base $out";
|
||||
|
||||
installPhase = "python setup.py install --prefix=$out";
|
||||
|
||||
buildInputs = [ python pkgconfig ];
|
||||
|
||||
meta = {
|
||||
description = "An interpreter to help writing C extensions for Python 2";
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
{ stdenv, fetchurl, python3, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "cython3-0.20";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.cython.org/release/Cython-0.20.tar.gz;
|
||||
sha256 = "1a3m7zhw8mdyr95fwx7n1scrz82drr433i99dzm1n9dxi0cx2qah";
|
||||
};
|
||||
|
||||
buildPhase = "python3 setup.py build --build-base $out";
|
||||
|
||||
installPhase = "python3 setup.py install --prefix=$out";
|
||||
|
||||
buildInputs = [ python3 pkgconfig ];
|
||||
|
||||
meta = {
|
||||
description = "An interpreter to help writing C extensions for Python3";
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
@ -2360,8 +2360,8 @@ let
|
||||
|
||||
cmucl_binary = callPackage ../development/compilers/cmucl/binary.nix { };
|
||||
|
||||
cython = callPackage ../development/interpreters/cython/2 { };
|
||||
cython3 = callPackage ../development/interpreters/cython/3 { };
|
||||
cython = pythonPackages.cython;
|
||||
cython3 = python3Packages.cython;
|
||||
|
||||
dylan = callPackage ../development/compilers/gwydion-dylan {
|
||||
dylan = callPackage ../development/compilers/gwydion-dylan/binary.nix { };
|
||||
|
@ -1122,6 +1122,24 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
||||
propagatedBuildInputs = [ pythonPackages.coverage ];
|
||||
};
|
||||
|
||||
cython = buildPythonPackage rec {
|
||||
name = "Cython-0.20.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.cython.org/release/${name}.tar.gz";
|
||||
sha256 = "0v3nc9z5ynnnjdgcgkyy5g9wazmkjv53nnpjal1v3mr199s6799i";
|
||||
};
|
||||
|
||||
setupPyBuildFlags = ["--build-base=$out"];
|
||||
|
||||
buildInputs = [ pkgs.pkgconfig ];
|
||||
|
||||
meta = {
|
||||
description = "An interpreter to help writing C extensions for Python 2";
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
};
|
||||
|
||||
cryptacular = buildPythonPackage rec {
|
||||
name = "cryptacular-1.4.1";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user