# generated using pypi2nix tool (version: 1.8.1) # See more at: https://github.com/garbas/pypi2nix # # COMMAND: # pypi2nix -V 3.6 -e lektor -E libffi -E openssl # { pkgs ? import { } }: let inherit (pkgs) makeWrapper; inherit (pkgs.stdenv.lib) fix' extends inNixShell; pythonPackages = import "${toString pkgs.path}/pkgs/top-level/python-packages.nix" { inherit pkgs; inherit (pkgs) stdenv; python = pkgs.python36; # patching pip so it does not try to remove files when running nix-shell overrides = self: super: { bootstrapped-pip = super.bootstrapped-pip.overrideDerivation (old: { patchPhase = old.patchPhase + '' sed -i -e "s|paths_to_remove.remove(auto_confirm)|#paths_to_remove.remove(auto_confirm)|" -e "s|self.uninstalled = paths_to_remove|#self.uninstalled = paths_to_remove|" $out/${pkgs.python35.sitePackages}/pip/req/req_install.py ''; }); }; }; commonBuildInputs = with pkgs; [ libffi openssl ]; commonDoCheck = false; withPackages = pkgs': let pkgs = builtins.removeAttrs pkgs' [ "__unfix__" ]; interpreter = pythonPackages.buildPythonPackage { name = "python36-interpreter"; buildInputs = [ makeWrapper ] ++ (builtins.attrValues pkgs); buildCommand = '' mkdir -p $out/bin ln -s ${pythonPackages.python.interpreter} $out/bin/${pythonPackages.python.executable} for dep in ${ builtins.concatStringsSep " " (builtins.attrValues pkgs) }; do if [ -d "$dep/bin" ]; then for prog in "$dep/bin/"*; do if [ -f $prog ]; then ln -s $prog $out/bin/`basename $prog` fi done fi done for prog in "$out/bin/"*; do wrapProgram "$prog" --prefix PYTHONPATH : "$PYTHONPATH" done pushd $out/bin ln -s ${pythonPackages.python.executable} python ln -s ${pythonPackages.python.executable} python3 popd ''; passthru.interpreter = pythonPackages.python; }; in { __old = pythonPackages; inherit interpreter; mkDerivation = pythonPackages.buildPythonPackage; packages = pkgs; overrideDerivation = drv: f: pythonPackages.buildPythonPackage (drv.drvAttrs // f drv.drvAttrs // { meta = drv.meta; }); withPackages = pkgs'': withPackages (pkgs // pkgs''); }; python = withPackages { }; generated = self: { "Babel" = python.mkDerivation { name = "Babel-2.6.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/be/cc/9c981b249a455fa0c76338966325fc70b7265521bad641bf2932f77712f4/Babel-2.6.0.tar.gz"; sha256 = "8cba50f48c529ca3fa18cf81fa9403be176d374ac4d60738b839122dfaaa3d23"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."pytz" ]; meta = with pkgs.stdenv.lib; { homepage = "http://babel.pocoo.org/"; license = licenses.bsdOriginal; description = "Internationalization utilities"; }; }; "Click" = python.mkDerivation { name = "Click-7.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/f8/5c/f60e9d8a1e77005f664b76ff8aeaee5bc05d0a91798afd7f53fc998dbc47/Click-7.0.tar.gz"; sha256 = "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://palletsprojects.com/p/click/"; license = licenses.bsdOriginal; description = "Composable command line interface toolkit"; }; }; "ExifRead" = python.mkDerivation { name = "ExifRead-2.1.2"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/7b/cb/92b644626830115910cf2b36d3dfa600adbec86dff3207a7de3bfd6c6a60/ExifRead-2.1.2.tar.gz"; sha256 = "79e244f2eb466709029e8806fe5e2cdd557870c3db5f68954db0ef548d9320ad"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/ianare/exif-py"; license = licenses.bsdOriginal; description = "Read Exif metadata from tiff and jpeg files."; }; }; "Flask" = python.mkDerivation { name = "Flask-1.0.2"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/4b/12/c1fbf4971fda0e4de05565694c9f0c92646223cff53f15b6eb248a310a62/Flask-1.0.2.tar.gz"; sha256 = "2271c0070dbcb5275fad4a82e29f23ab92682dc45f9dfbc22c02ba9b9322ce48"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."Click" self."Jinja2" self."Werkzeug" self."itsdangerous" ]; meta = with pkgs.stdenv.lib; { homepage = "https://www.palletsprojects.com/p/flask/"; license = licenses.bsdOriginal; description = "A simple framework for building complex web applications."; }; }; "Jinja2" = python.mkDerivation { name = "Jinja2-2.10"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/56/e6/332789f295cf22308386cf5bbd1f4e00ed11484299c5d7383378cf48ba47/Jinja2-2.10.tar.gz"; sha256 = "f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."Babel" self."MarkupSafe" ]; meta = with pkgs.stdenv.lib; { homepage = "http://jinja.pocoo.org/"; license = licenses.bsdOriginal; description = "A small but fast and easy to use stand-alone template engine written in pure python."; }; }; "Lektor" = python.mkDerivation { name = "Lektor-3.1.3"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/00/02/43e93399b2f3974d7dfc50364d2d74a000f98bd0eedc406fd391769643e2/Lektor-3.1.3.tar.gz"; sha256 = "60a83e7a100780a58553324b396b0df32a2f584452184efbf87acefed85e564d"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."Babel" self."Click" self."ExifRead" self."Flask" self."Jinja2" self."inifile" self."mistune" self."requests" self."watchdog" ]; meta = with pkgs.stdenv.lib; { homepage = "http://github.com/lektor/lektor/"; license = licenses.bsdOriginal; description = "A static content management system."; }; }; "MarkupSafe" = python.mkDerivation { name = "MarkupSafe-1.1.1"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz"; sha256 = "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://palletsprojects.com/p/markupsafe/"; license = licenses.bsdOriginal; description = "Safely add untrusted strings to HTML/XML markup."; }; }; "PyYAML" = python.mkDerivation { name = "PyYAML-5.1"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz"; sha256 = "436bc774ecf7c103814098159fbb84c2715d25980175292c648f2da143909f95"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/yaml/pyyaml"; license = licenses.mit; description = "YAML parser and emitter for Python"; }; }; "Werkzeug" = python.mkDerivation { name = "Werkzeug-0.15.1"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/72/60/f628e8920cbf54afa2a83b75b32a1e69b559b95514d1deb841823dd97830/Werkzeug-0.15.1.tar.gz"; sha256 = "ca5c2dcd367d6c0df87185b9082929d255358f5391923269335782b213d52655"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."watchdog" ]; meta = with pkgs.stdenv.lib; { homepage = "https://palletsprojects.com/p/werkzeug/"; license = licenses.bsdOriginal; description = "The comprehensive WSGI web application library."; }; }; "argh" = python.mkDerivation { name = "argh-0.26.2"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/e3/75/1183b5d1663a66aebb2c184e0398724b624cecd4f4b679cb6e25de97ed15/argh-0.26.2.tar.gz"; sha256 = "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "http://github.com/neithere/argh/"; license = licenses.lgpl2; description = "An unobtrusive argparse wrapper with natural syntax"; }; }; "asn1crypto" = python.mkDerivation { name = "asn1crypto-0.24.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/fc/f1/8db7daa71f414ddabfa056c4ef792e1461ff655c2ae2928a2b675bfed6b4/asn1crypto-0.24.0.tar.gz"; sha256 = "9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/wbond/asn1crypto"; license = licenses.mit; description = "Fast ASN.1 parser and serializer with definitions for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 and TSP"; }; }; "certifi" = python.mkDerivation { name = "certifi-2019.3.9"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/06/b8/d1ea38513c22e8c906275d135818fee16ad8495985956a9b7e2bb21942a1/certifi-2019.3.9.tar.gz"; sha256 = "b26104d6835d1f5e49452a26eb2ff87fe7090b89dfcaee5ea2212697e1e1d7ae"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://certifi.io/"; license = licenses.mpl20; description = "Python package for providing Mozilla's CA Bundle."; }; }; "cffi" = python.mkDerivation { name = "cffi-1.12.2"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/64/7c/27367b38e6cc3e1f49f193deb761fe75cda9f95da37b67b422e62281fcac/cffi-1.12.2.tar.gz"; sha256 = "e113878a446c6228669144ae8a56e268c91b7f1fafae927adc4879d9849e0ea7"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."pycparser" ]; meta = with pkgs.stdenv.lib; { homepage = "http://cffi.readthedocs.org"; license = licenses.mit; description = "Foreign Function Interface for Python calling C code."; }; }; "chardet" = python.mkDerivation { name = "chardet-3.0.4"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz"; sha256 = "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/chardet/chardet"; license = licenses.lgpl2; description = "Universal encoding detector for Python 2 and 3"; }; }; "cryptography" = python.mkDerivation { name = "cryptography-2.6.1"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/07/ca/bc827c5e55918ad223d59d299fff92f3563476c3b00d0a9157d9c0217449/cryptography-2.6.1.tar.gz"; sha256 = "26c821cbeb683facb966045e2064303029d572a87ee69ca5a1bf54bf55f93ca6"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."asn1crypto" self."cffi" self."idna" self."pytz" self."six" ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/pyca/cryptography"; license = licenses.bsdOriginal; description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."; }; }; "idna" = python.mkDerivation { name = "idna-2.8"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/ad/13/eb56951b6f7950cadb579ca166e448ba77f9d24efc03edd7e55fa57d04b7/idna-2.8.tar.gz"; sha256 = "c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/kjd/idna"; license = licenses.bsdOriginal; description = "Internationalized Domain Names in Applications (IDNA)"; }; }; "inifile" = python.mkDerivation { name = "inifile-0.4"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/af/9e/1cd6be0edcbeeb89a6d6ee101dc371a43fa1a19ffaa06ffe99b9e92a3053/inifile-0.4.zip"; sha256 = "891bc629f81477708581b30a7b0583bb5c9c2ee3c070afd4675ecd4f96b0d78d"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = ""; license = licenses.bsdOriginal; description = "A small INI library for Python."; }; }; "itsdangerous" = python.mkDerivation { name = "itsdangerous-1.1.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/68/1a/f27de07a8a304ad5fa817bbe383d1238ac4396da447fa11ed937039fa04b/itsdangerous-1.1.0.tar.gz"; sha256 = "321b033d07f2a4136d3ec762eac9f16a10ccd60f53c0c91af90217ace7ba1f19"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://palletsprojects.com/p/itsdangerous/"; license = licenses.bsdOriginal; description = "Various helpers to pass data to untrusted environments and back."; }; }; "mistune" = python.mkDerivation { name = "mistune-0.8.4"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/2d/a4/509f6e7783ddd35482feda27bc7f72e65b5e7dc910eca4ab2164daf9c577/mistune-0.8.4.tar.gz"; sha256 = "59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/lepture/mistune"; license = licenses.bsdOriginal; description = "The fastest markdown parser in pure Python"; }; }; "pathtools" = python.mkDerivation { name = "pathtools-0.1.2"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/e7/7f/470d6fcdf23f9f3518f6b0b76be9df16dcc8630ad409947f8be2eb0ed13a/pathtools-0.1.2.tar.gz"; sha256 = "7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "http://github.com/gorakhargosh/pathtools"; license = licenses.mit; description = "File system general utilities"; }; }; "pyOpenSSL" = python.mkDerivation { name = "pyOpenSSL-19.0.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/40/d0/8efd61531f338a89b4efa48fcf1972d870d2b67a7aea9dcf70783c8464dc/pyOpenSSL-19.0.0.tar.gz"; sha256 = "aeca66338f6de19d1aa46ed634c3b9ae519a64b458f8468aec688e7e3c20f200"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."cryptography" self."six" ]; meta = with pkgs.stdenv.lib; { homepage = "https://pyopenssl.org/"; license = licenses.asl20; description = "Python wrapper module around the OpenSSL library"; }; }; "pycparser" = python.mkDerivation { name = "pycparser-2.19"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz"; sha256 = "a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/eliben/pycparser"; license = licenses.bsdOriginal; description = "C parser in Python"; }; }; "pytz" = python.mkDerivation { name = "pytz-2018.9"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/af/be/6c59e30e208a5f28da85751b93ec7b97e4612268bb054d0dff396e758a90/pytz-2018.9.tar.gz"; sha256 = "d5f05e487007e29e03409f9398d074e158d920d36eb82eaf66fb1136b0c5374c"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "http://pythonhosted.org/pytz"; license = licenses.mit; description = "World timezone definitions, modern and historical"; }; }; "requests" = python.mkDerivation { name = "requests-2.21.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/52/2c/514e4ac25da2b08ca5a464c50463682126385c4272c18193876e91f4bc38/requests-2.21.0.tar.gz"; sha256 = "502a824f31acdacb3a35b6690b5fbf0bc41d63a24a45c4004352b0242707598e"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."certifi" self."chardet" self."cryptography" self."idna" self."pyOpenSSL" self."urllib3" ]; meta = with pkgs.stdenv.lib; { homepage = "http://python-requests.org"; license = licenses.asl20; description = "Python HTTP for Humans."; }; }; "six" = python.mkDerivation { name = "six-1.12.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/dd/bf/4138e7bfb757de47d1f4b6994648ec67a51efe58fa907c1e11e350cddfca/six-1.12.0.tar.gz"; sha256 = "d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ ]; meta = with pkgs.stdenv.lib; { homepage = "https://github.com/benjaminp/six"; license = licenses.mit; description = "Python 2 and 3 compatibility utilities"; }; }; "urllib3" = python.mkDerivation { name = "urllib3-1.24.1"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/b1/53/37d82ab391393565f2f831b8eedbffd57db5a718216f82f1a8b4d381a1c1/urllib3-1.24.1.tar.gz"; sha256 = "de9529817c93f27c8ccbfead6985011db27bd0ddfcdb2d86f3f663385c6a9c22"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."certifi" self."cryptography" self."idna" self."pyOpenSSL" ]; meta = with pkgs.stdenv.lib; { homepage = "https://urllib3.readthedocs.io/"; license = licenses.mit; description = "HTTP library with thread-safe connection pooling, file post, and more."; }; }; "watchdog" = python.mkDerivation { name = "watchdog-0.9.0"; src = pkgs.fetchurl { url = "https://files.pythonhosted.org/packages/bb/e3/5a55d48a29300160779f0a0d2776d17c1b762a2039b36de528b093b87d5b/watchdog-0.9.0.tar.gz"; sha256 = "965f658d0732de3188211932aeb0bb457587f04f63ab4c1e33eab878e9de961d"; }; doCheck = commonDoCheck; buildInputs = commonBuildInputs; propagatedBuildInputs = [ self."PyYAML" self."argh" self."pathtools" ]; meta = with pkgs.stdenv.lib; { homepage = "http://github.com/gorakhargosh/watchdog"; license = licenses.asl20; description = "Filesystem events monitoring"; }; }; }; localOverridesFile = ./requirements_override.nix; overrides = import localOverridesFile { inherit pkgs python; }; commonOverrides = [ ]; allOverrides = (if (builtins.pathExists localOverridesFile) then [ overrides ] else [ ]) ++ commonOverrides; in python.withPackages (fix' (pkgs.lib.fold extends generated allOverrides))