mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
pythonPackages.pycapnp: refactor move to python-modules
This commit is contained in:
parent
e7db7a501f
commit
288082b112
34
pkgs/development/python-modules/pycapnp/default.nix
Normal file
34
pkgs/development/python-modules/pycapnp/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, capnproto
|
||||
, cython
|
||||
, isPyPy
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycapnp";
|
||||
version = "0.6.3";
|
||||
disabled = isPyPy || isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b3c5a1fcc93fd02fdc070aeccb89654b87f20bdc740f643cc6378925ed6d4c17";
|
||||
};
|
||||
|
||||
buildInputs = [ capnproto cython ];
|
||||
|
||||
# import setuptools as soon as possible, to minimize monkeypatching mayhem.
|
||||
postConfigure = ''
|
||||
sed -i '3iimport setuptools' setup.py
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
license = licenses.bsd2;
|
||||
homepage = "http://jparyani.github.io/pycapnp/index.html";
|
||||
broken = true; # 2018-04-11
|
||||
};
|
||||
|
||||
}
|
@ -3279,30 +3279,7 @@ in {
|
||||
|
||||
pyblosxom = callPackage ../development/python-modules/pyblosxom { };
|
||||
|
||||
pycapnp = buildPythonPackage rec {
|
||||
name = "pycapnp-0.5.1";
|
||||
disabled = isPyPy || isPy3k;
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/pycapnp/${name}.tar.gz";
|
||||
sha256 = "1kp97il34419gcrhn866n6a10lvh8qr13bnllnnh9473n4cq0cvk";
|
||||
};
|
||||
|
||||
buildInputs = with pkgs; [ capnproto self.cython ];
|
||||
|
||||
# import setuptools as soon as possible, to minimize monkeypatching mayhem.
|
||||
postConfigure = ''
|
||||
sed -i '3iimport setuptools' setup.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.all;
|
||||
homepage = "http://jparyani.github.io/pycapnp/index.html";
|
||||
broken = true; # 2018-04-11
|
||||
};
|
||||
};
|
||||
pycapnp = callPackage ../development/python-modules/pycapnp { };
|
||||
|
||||
pycaption = callPackage ../development/python-modules/pycaption { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user