Merge branch 'master' into staging
There were some conflicts in python modules, commented at #28314.
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, pycrypto
|
||||
, paramiko
|
||||
, jinja2
|
||||
, pyyaml
|
||||
, httplib2
|
||||
, boto
|
||||
, six
|
||||
, netaddr
|
||||
, dns
|
||||
, windowsSupport ? false
|
||||
, pywinrm ? null
|
||||
}:
|
||||
|
||||
let
|
||||
jinja = jinja2.override rec {
|
||||
pname = "Jinja2";
|
||||
version = "2.8.1";
|
||||
name = "${pname}-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/J/Jinja2/${name}.tar.gz";
|
||||
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
|
||||
};
|
||||
};
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.1.4.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
||||
sha256 = "05nc68900qrzqp88970j2lmyvclgrjki66xavcpzyzamaqrh7wg9";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
dontPatchShebangs = false;
|
||||
|
||||
propagatedBuildInputs = [ pycrypto paramiko jinja pyyaml httplib2
|
||||
boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
|
||||
|
||||
meta = {
|
||||
homepage = http://www.ansible.com;
|
||||
description = "A simple automation tool";
|
||||
license = with lib.licenses; [ gpl3] ;
|
||||
maintainers = with lib.maintainers; [
|
||||
jgeerds
|
||||
joamaki
|
||||
];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, pycrypto
|
||||
, paramiko
|
||||
, jinja2
|
||||
, pyyaml
|
||||
, httplib2
|
||||
, boto
|
||||
, six
|
||||
, netaddr
|
||||
, dns
|
||||
, windowsSupport ? false
|
||||
, pywinrm ? null
|
||||
}:
|
||||
|
||||
let
|
||||
# Shouldn't be needed anymore in next version
|
||||
# https://github.com/NixOS/nixpkgs/pull/22345#commitcomment-20718521
|
||||
jinja = (jinja2.override rec {
|
||||
pname = "Jinja2";
|
||||
version = "2.8.1";
|
||||
name = "${pname}-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/J/Jinja2/${name}.tar.gz";
|
||||
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
|
||||
};
|
||||
});
|
||||
in buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.2.1.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
||||
sha256 = "0gz9i30pdmkchi936ijy873k8di6fmf3v5rv551hxyf0hjkjx8b3";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
dontPatchShebangs = false;
|
||||
|
||||
propagatedBuildInputs = [ pycrypto paramiko jinja pyyaml httplib2
|
||||
boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
|
||||
|
||||
meta = {
|
||||
homepage = http://www.ansible.com;
|
||||
description = "A simple automation tool";
|
||||
license = with lib.licenses; [ gpl3] ;
|
||||
maintainers = with lib.maintainers; [
|
||||
jgeerds
|
||||
joamaki
|
||||
];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
{ lib
|
||||
, fetchurl
|
||||
, buildPythonPackage
|
||||
, pycrypto
|
||||
, paramiko
|
||||
, jinja2
|
||||
, pyyaml
|
||||
, httplib2
|
||||
, boto
|
||||
, six
|
||||
, netaddr
|
||||
, dns
|
||||
, windowsSupport ? false
|
||||
, pywinrm ? null
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.3.1.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://releases.ansible.com/ansible/${name}.tar.gz";
|
||||
sha256 = "1xdr82fy8gahxh3586wm5k1bxksys7yl1f2n24shrk8gf99qyjyd";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
sed -i "s,/usr/,$out," lib/ansible/constants.py
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
dontStrip = true;
|
||||
dontPatchELF = true;
|
||||
dontPatchShebangs = false;
|
||||
|
||||
propagatedBuildInputs = [ pycrypto paramiko jinja2 pyyaml httplib2
|
||||
boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
|
||||
|
||||
meta = {
|
||||
homepage = http://www.ansible.com;
|
||||
description = "A simple automation tool";
|
||||
license = with lib.licenses; [ gpl3] ;
|
||||
maintainers = with lib.maintainers; [
|
||||
jgeerds
|
||||
joamaki
|
||||
];
|
||||
platforms = with lib.platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
27
pkgs/development/python-modules/cgroup-utils/default.nix
Normal file
27
pkgs/development/python-modules/cgroup-utils/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, pep8, nose }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.6";
|
||||
name = "cgroup-utils-${version}";
|
||||
|
||||
buildInputs = [ pep8 nose ];
|
||||
# Pep8 tests fail...
|
||||
doCheck = false;
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e "/argparse/d" setup.py
|
||||
'';
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "peo3";
|
||||
repo = "cgroup-utils";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ck0aijzrg9xf6hjdxnynkapnyxw0y385jb0q7wyq4jf77ayfszc";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Utility tools for control groups of Linux";
|
||||
maintainers = with maintainers; [ layus ];
|
||||
license = licenses.gpl2;
|
||||
};
|
||||
}
|
||||
@@ -4,15 +4,19 @@
|
||||
with stdenv.lib;
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "Flask-Testing";
|
||||
version = "0.6.2";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f25effd266fce9b16482f4ce3423d5a7d25534aab77bc83caace5d9637bf0df0";
|
||||
sha256 = "1w0dpwvrcpffm8ychyxpm8s5blm7slik9kplh9jb3sgwcv9gyppj";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e 's/twill==0.9.1/twill/' setup.py
|
||||
'';
|
||||
|
||||
buildInputs = optionals (pythonOlder "3.0") [ twill ];
|
||||
propagatedBuildInputs = [ flask blinker ];
|
||||
|
||||
|
||||
31
pkgs/development/python-modules/gpy/default.nix
Normal file
31
pkgs/development/python-modules/gpy/default.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, numpy, scipy, six, paramz, nose, matplotlib, cython }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "GPy";
|
||||
version = "1.7.7";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1b4siirlkqic1lsn9bi9mnp8fpbpw1ijwv0z2i6r2zdrk3d6szs1";
|
||||
};
|
||||
|
||||
# running tests produces "ImportError: cannot import name 'linalg_cython'"
|
||||
# even though Cython has run
|
||||
checkPhase = "nosetests -d";
|
||||
doCheck = false;
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
buildInputs = [ cython ];
|
||||
|
||||
propagatedBuildInputs = [ numpy scipy six paramz matplotlib ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Gaussian process framework in Python";
|
||||
homepage = https://sheffieldml.github.io/GPy;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
52
pkgs/development/python-modules/keystoneclient/default.nix
Normal file
52
pkgs/development/python-modules/keystoneclient/default.nix
Normal file
@@ -0,0 +1,52 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, python
|
||||
|
||||
, pbr, testtools, testresources, testrepository
|
||||
, requests-mock, fixtures, openssl, oslotest, pep8
|
||||
|
||||
, oslo-serialization, oslo-config, oslo-i18n, oslo-utils
|
||||
, Babel, prettytable, requests, six, iso8601, stevedore
|
||||
, netaddr, debtcollector, bandit, webob, mock, pycrypto
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "keystoneclient-${version}";
|
||||
version = "1.8.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "openstack";
|
||||
repo = "python-keystoneclient";
|
||||
rev = version;
|
||||
sha256 = "0yayn1hb3mncqb0isy8vy6d519xya7mhf5pcbn60fzdqjrkj2prq";
|
||||
};
|
||||
|
||||
PBR_VERSION = "${version}";
|
||||
|
||||
buildInputs = [
|
||||
pbr testtools testresources testrepository requests-mock fixtures openssl
|
||||
oslotest pep8
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
oslo-serialization oslo-config oslo-i18n oslo-utils
|
||||
Babel prettytable requests six iso8601 stevedore
|
||||
netaddr debtcollector bandit webob mock pycrypto
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||
sed -ie '/argparse/d' requirements.txt
|
||||
'';
|
||||
|
||||
doCheck = false; # The checkPhase below is broken
|
||||
|
||||
checkPhase = ''
|
||||
patchShebangs run_tests.sh
|
||||
./run_tests.sh
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/openstack/python-novaclient/;
|
||||
description = "Client library and command line tool for the OpenStack Nova API";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, mozfile
|
||||
}:
|
||||
|
||||
@@ -15,12 +15,14 @@ buildPythonPackage rec {
|
||||
sha256 = "1jwhnhbj7xipwh33wf7m12pw5g662dpr1chkp6p2fmy0mwpn2y4z";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ mozfile ];
|
||||
disabled = isPy3k;
|
||||
|
||||
meta = {
|
||||
propagatedBuildInputs = [ mozfile ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "System information utilities for Mozilla testing";
|
||||
homepage = https://wiki.mozilla.org/Auto-tools/Projects/Mozbase;
|
||||
license = lib.licenses.mpl20;
|
||||
maintainers = with lib.maintainers; [ raskin ];
|
||||
license = licenses.mpl20;
|
||||
maintainers = with maintainers; [ raskin ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
, blessings
|
||||
, mozfile
|
||||
}:
|
||||
@@ -11,12 +12,14 @@ buildPythonPackage rec {
|
||||
version = "3.4";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
disabled = isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1m4d9i1kzcmkhipfd5czv05f2s84j1byx3cv4y2irjmwq5v6cyiq";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ blessings mozfile ];
|
||||
propagatedBuildInputs = [ blessings mozfile ];
|
||||
|
||||
meta = {
|
||||
description = "Mozilla logging library";
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
{ stdenv, fetchurl, buildPythonPackage }:
|
||||
{ stdenv, fetchPypi, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "phonenumbers";
|
||||
version = "8.8.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0j8yzn7fva863v7vrjk0s1d63yswg8hf2hlpvfwzxk9absjyvmgq";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Python version of Google's common library for parsing, formatting, storing and validating international phone numbers";
|
||||
homepage = "https://github.com/daviddrysdale/python-phonenumbers";
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
maintainers = with stdenv.lib.maintainers; [ fadenb ];
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/p/phonenumbers/${name}.tar.gz";
|
||||
sha256 = "f8d5eda55e2acdfeb9db9742e1207a5cfb615ad060cabccf1e06a9ed8efd1e49";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{lib, buildPythonPackage, fetchurl, pillow}:
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pillow }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
@@ -8,17 +8,23 @@ buildPythonPackage rec {
|
||||
# pillow needed for unit tests
|
||||
buildInputs = [ pillow ];
|
||||
|
||||
# No .tar.gz source available at PyPI, only .zip source, so need to use
|
||||
# fetchurl because fetchPypi doesn't support .zip.
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.zip";
|
||||
postPatch = ''
|
||||
# incompatibility with pillow => 4.2.0
|
||||
# has been resolved in https://github.com/hMatoba/Piexif/commit/c3a8272f5e6418f223b25f6486d8ddda201bbdf1
|
||||
# remove this in the next version
|
||||
sed -i -e 's/RGBA/RGB/' tests/s_test.py
|
||||
'';
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "15dvdr7b5xxsbsq5k6kq8h0xnzrkqzc08dzlih48a21x27i02bii";
|
||||
};
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simplify Exif manipulations with Python";
|
||||
homepage = https://github.com/hMatoba/Piexif;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ jluttine ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jluttine ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ buildPythonPackage
|
||||
, fetchurl
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, Mako
|
||||
, boost
|
||||
, numpy
|
||||
, pytools
|
||||
@@ -25,25 +26,20 @@ buildPythonPackage rec {
|
||||
version = "2017.1.1";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
||||
sha256 = "6b5a9384e38c603ee429f8a6bee424532db7b3505027ce22f7e18ad19564b563";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0qxmcjax32p1ywicw9sha2rvfbak4kjbx9pq57j3wq4cwf296nkb";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
findInputs ${boost.dev} boost_dirs propagated-native-build-inputs
|
||||
|
||||
export BOOST_INCLUDEDIR=$(echo $boost_dirs | sed -e s/\ /\\n/g - | grep '\-dev')/include
|
||||
export BOOST_LIBRARYDIR=$(echo $boost_dirs | sed -e s/\ /\\n/g - | grep -v '\-dev')/lib
|
||||
|
||||
${python.interpreter} configure.py --boost-inc-dir=$BOOST_INCLUDEDIR \
|
||||
--boost-lib-dir=$BOOST_LIBRARYDIR \
|
||||
--no-use-shipped-boost \
|
||||
--boost-python-libname=boost_python
|
||||
${python.interpreter} configure.py --boost-inc-dir=${boost.dev}/include \
|
||||
--boost-lib-dir=${boost}/lib \
|
||||
--no-use-shipped-boost \
|
||||
--boost-python-libname=boost_python
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
ln -s ${compyte} $out/${python.sitePackages}/pycuda/compyte
|
||||
ln -s ${compyte} $out/${python.sitePackages}/pycuda/compyte
|
||||
'';
|
||||
|
||||
# Requires access to libcuda.so.1 which is provided by the driver
|
||||
@@ -63,7 +59,8 @@ buildPythonPackage rec {
|
||||
cudatoolkit
|
||||
compyte
|
||||
python
|
||||
];
|
||||
Mako
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/inducer/pycuda/;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, pkgs, buildPythonPackage, fetchFromGitHub
|
||||
{ stdenv, pkgs, buildPythonPackage, fetchFromGitHub, isPy27
|
||||
, cython, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer, libjpeg, libpng }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@@ -18,6 +18,9 @@ buildPythonPackage rec {
|
||||
cython libjpeg libpng
|
||||
];
|
||||
|
||||
|
||||
doCheck = isPy27; # python3 tests are non-functional
|
||||
|
||||
postInstall = ''
|
||||
( cd "$out"/include/python*/ ;
|
||||
ln -s pygame-sdl2 pygame_sdl2 || true ; )
|
||||
|
||||
25
pkgs/development/python-modules/pyramid_beaker/default.nix
Normal file
25
pkgs/development/python-modules/pyramid_beaker/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, pytest, beaker, pyramid }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "pyramid_beaker";
|
||||
version = "0.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0hflx3qkcdml1mwpq53sz46s7jickpfn0zy0ns2c7j445j66bp3p";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
# https://github.com/Pylons/pyramid_beaker/issues/29
|
||||
py.test -k 'not test_includeme' pyramid_beaker/tests.py
|
||||
'';
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
propagatedBuildInputs = [ beaker pyramid ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
maintainers = with maintainers; [ domenkozar ];
|
||||
};
|
||||
}
|
||||
18
pkgs/development/python-modules/pyside/gcc6.patch
Normal file
18
pkgs/development/python-modules/pyside/gcc6.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- Shiboken-1.2.4.org/tests/libsample/simplefile.cpp 2017-08-26 09:06:27.216859143 +0100
|
||||
+++ Shiboken-1.2.4/tests/libsample/simplefile.cpp 2017-08-26 09:05:40.037029652 +0100
|
||||
@@ -90,13 +90,13 @@
|
||||
SimpleFile::exists() const
|
||||
{
|
||||
std::ifstream ifile(p->m_filename);
|
||||
- return ifile;
|
||||
+ return (bool)ifile;
|
||||
}
|
||||
|
||||
bool
|
||||
SimpleFile::exists(const char* filename)
|
||||
{
|
||||
std::ifstream ifile(filename);
|
||||
- return ifile;
|
||||
+ return (bool)ifile;
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ buildPythonPackage rec {
|
||||
sha256 = "1536f73a3353296d97a25e24f9554edf3e6a48126886f8d21282c3645ecb96a4";
|
||||
};
|
||||
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ cmake libxml2 libxslt pysideApiextractor pysideGeneratorrunner python sphinx qt4 ];
|
||||
@@ -23,7 +24,9 @@ buildPythonPackage rec {
|
||||
substituteInPlace generator/CMakeLists.txt --replace \
|
||||
\"$\{GENERATORRUNNER_PLUGIN_DIR}\" lib/generatorrunner/
|
||||
'';
|
||||
patches = if (isPy35 || isPy36) then [ ./shiboken_py35.patch ] else null;
|
||||
|
||||
# gcc6 patch was also sent upstream: https://github.com/pyside/Shiboken/pull/86
|
||||
patches = [ ./gcc6.patch ] ++ (lib.optional (isPy35 || isPy36) ./shiboken_py35.patch);
|
||||
|
||||
cmakeFlags = if isPy3k then "-DUSE_PYTHON3=TRUE" else null;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "883ac416757eada6d3d07054ec7092ac21c7f35cb1d2cf82faf205637081f468";
|
||||
sha256 = "18gg9dwral153c10f8bwhz2dy4nw7c6mws5a2g7gidk3z5xhqy4n";
|
||||
};
|
||||
|
||||
doCheck = false; # Internet tests fail when building in chroot
|
||||
|
||||
26
pkgs/development/python-modules/tiros/default.nix
Normal file
26
pkgs/development/python-modules/tiros/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, semantic-version
|
||||
, boto3
|
||||
, flask
|
||||
, docutils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tiros";
|
||||
name = "${pname}-${version}";
|
||||
version = "1.0.38";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0k668z9gb5vh304gysynj4rxgi24wy2vl4a33dnwkri2g6db3s4n";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -E -i "s/'([[:alnum:].-_]+)[=><]{2}[[:digit:].]*'/'\\1'/g" setup.py
|
||||
sed -i "s/'datetime',//" setup.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ semantic-version boto3 flask docutils ];
|
||||
}
|
||||
Reference in New Issue
Block a user