mirror of
https://github.com/nix-dot-dev/nix.dev.git
synced 2024-08-17 09:10:35 +03:00
pypi2nix -> mach-nix
This commit is contained in:
parent
9a88c8801a
commit
506d542df8
3
live
3
live
@ -1,2 +1 @@
|
||||
# TODO: https://github.com/nix-community/pypi2nix/issues/432
|
||||
PATH=$PATH:$(nix-build requirements.nix)/bin nix-shell requirements.nix --run "python live.py"
|
||||
nix-shell --run "python live.py"
|
||||
|
588
requirements.nix
588
requirements.nix
@ -1,588 +0,0 @@
|
||||
# generated using pypi2nix tool (version: 2.0.4)
|
||||
# See more at: https://github.com/nix-community/pypi2nix
|
||||
#
|
||||
# COMMAND:
|
||||
# pypi2nix -r requirements.txt
|
||||
#
|
||||
|
||||
{ pkgs ? import <nixpkgs> {},
|
||||
overrides ? ({ pkgs, python }: self: super: {})
|
||||
}:
|
||||
|
||||
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.python3;
|
||||
};
|
||||
|
||||
commonBuildInputs = [];
|
||||
commonDoCheck = false;
|
||||
|
||||
withPackages = pkgs':
|
||||
let
|
||||
pkgs = builtins.removeAttrs pkgs' ["__unfix__"];
|
||||
interpreterWithPackages = selectPkgsFn: pythonPackages.buildPythonPackage {
|
||||
name = "python3-interpreter";
|
||||
buildInputs = [ makeWrapper ] ++ (selectPkgsFn pkgs);
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
ln -s ${pythonPackages.python.interpreter} \
|
||||
$out/bin/${pythonPackages.python.executable}
|
||||
for dep in ${builtins.concatStringsSep " "
|
||||
(selectPkgsFn pkgs)}; do
|
||||
if [ -d "$dep/bin" ]; then
|
||||
for prog in "$dep/bin/"*; do
|
||||
if [ -x "$prog" ] && [ -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;
|
||||
};
|
||||
|
||||
interpreter = interpreterWithPackages builtins.attrValues;
|
||||
in {
|
||||
__old = pythonPackages;
|
||||
inherit interpreter;
|
||||
inherit interpreterWithPackages;
|
||||
mkDerivation = args: pythonPackages.buildPythonPackage (args // {
|
||||
nativeBuildInputs = (args.nativeBuildInputs or []) ++ args.buildInputs;
|
||||
});
|
||||
packages = pkgs;
|
||||
overrideDerivation = drv: f:
|
||||
pythonPackages.buildPythonPackage (
|
||||
drv.drvAttrs // f drv.drvAttrs // { meta = drv.meta; }
|
||||
);
|
||||
withPackages = pkgs'':
|
||||
withPackages (pkgs // pkgs'');
|
||||
};
|
||||
|
||||
python = withPackages {};
|
||||
|
||||
generated = self: {
|
||||
"alabaster" = python.mkDerivation {
|
||||
name = "alabaster-0.7.12";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/cc/b4/ed8dcb0d67d5cfb7f83c4d5463a7614cb1d078ad7ae890c9143edebbf072/alabaster-0.7.12.tar.gz";
|
||||
sha256 = "a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://alabaster.readthedocs.io";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "A configurable sidebar-enabled Sphinx theme";
|
||||
};
|
||||
};
|
||||
|
||||
"babel" = python.mkDerivation {
|
||||
name = "babel-2.8.0";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/34/18/8706cfa5b2c73f5a549fdc0ef2e24db71812a2685959cff31cbdfc010136/Babel-2.8.0.tar.gz";
|
||||
sha256 = "1aac2ae2d0d8ea368fa90906567f5c08463d98ade155c0c4bfedd6a0f7160e38";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [
|
||||
self."pytz"
|
||||
];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://babel.pocoo.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "Internationalization utilities";
|
||||
};
|
||||
};
|
||||
|
||||
"certifi" = python.mkDerivation {
|
||||
name = "certifi-2020.6.20";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/40/a7/ded59fa294b85ca206082306bba75469a38ea1c7d44ea7e1d64f5443d67a/certifi-2020.6.20.tar.gz";
|
||||
sha256 = "5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://certifiio.readthedocs.io/en/latest/";
|
||||
license = licenses.mpl20;
|
||||
description = "Python package for providing Mozilla's CA Bundle.";
|
||||
};
|
||||
};
|
||||
|
||||
"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;
|
||||
format = "setuptools";
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
"docutils" = python.mkDerivation {
|
||||
name = "docutils-0.16";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/2f/e0/3d435b34abd2d62e8206171892f174b180cd37b09d57b924ca5c2ef2219d/docutils-0.16.tar.gz";
|
||||
sha256 = "c2de3a60e9e7d07be26b7f2b00ca0309c207e06c100f9cc2a94931fc75a478fc";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://docutils.sourceforge.net/";
|
||||
license = licenses.publicDomain;
|
||||
description = "Docutils -- Python Documentation Utilities";
|
||||
};
|
||||
};
|
||||
|
||||
"idna" = python.mkDerivation {
|
||||
name = "idna-2.10";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/ea/b7/e0e3c1c467636186c39925827be42f16fee389dc404ac29e930e9136be70/idna-2.10.tar.gz";
|
||||
sha256 = "b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/kjd/idna";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "Internationalized Domain Names in Applications (IDNA)";
|
||||
};
|
||||
};
|
||||
|
||||
"imagesize" = python.mkDerivation {
|
||||
name = "imagesize-1.2.0";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/e4/9f/0452b459c8ba97e07c3cd2bd243783936a992006cf4cd1353c314a927028/imagesize-1.2.0.tar.gz";
|
||||
sha256 = "b1f6b5a4eab1f73479a50fb79fcf729514a900c341d8503d62a62dbc4127a2b1";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/shibukawa/imagesize_py";
|
||||
license = licenses.mit;
|
||||
description = "Getting image size from png/jpeg/jpeg2000/gif file";
|
||||
};
|
||||
};
|
||||
|
||||
"jinja2" = python.mkDerivation {
|
||||
name = "jinja2-2.11.2";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/64/a7/45e11eebf2f15bf987c3bc11d37dcc838d9dc81250e67e4c5968f6008b6c/Jinja2-2.11.2.tar.gz";
|
||||
sha256 = "89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [
|
||||
self."markupsafe"
|
||||
];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://palletsprojects.com/p/jinja/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "A very fast and expressive template engine.";
|
||||
};
|
||||
};
|
||||
|
||||
"livereload" = python.mkDerivation {
|
||||
name = "livereload-2.6.2";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/b5/a2/a36af515c73fac8d596b5e0f1f9b38b83a9366facb3959dd8428727cc650/livereload-2.6.2.tar.gz";
|
||||
sha256 = "d1eddcb5c5eb8d2ca1fa1f750e580da624c0f7fcb734aa5780dc81b7dcbd89be";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [
|
||||
self."six"
|
||||
self."tornado"
|
||||
];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/lepture/python-livereload";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "Python LiveReload is an awesome tool for web developers";
|
||||
};
|
||||
};
|
||||
|
||||
"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;
|
||||
format = "setuptools";
|
||||
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.";
|
||||
};
|
||||
};
|
||||
|
||||
"packaging" = python.mkDerivation {
|
||||
name = "packaging-20.4";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/55/fd/fc1aca9cf51ed2f2c11748fa797370027babd82f87829c7a8e6dbe720145/packaging-20.4.tar.gz";
|
||||
sha256 = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [
|
||||
self."pyparsing"
|
||||
self."six"
|
||||
];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/pypa/packaging";
|
||||
license = licenses.asl20;
|
||||
description = "Core utilities for Python packages";
|
||||
};
|
||||
};
|
||||
|
||||
"pygments" = python.mkDerivation {
|
||||
name = "pygments-2.6.1";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/6e/4d/4d2fe93a35dfba417311a4ff627489a947b01dc0cc377a3673c00cf7e4b2/Pygments-2.6.1.tar.gz";
|
||||
sha256 = "647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://pygments.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "Pygments is a syntax highlighting package written in Python.";
|
||||
};
|
||||
};
|
||||
|
||||
"pyparsing" = python.mkDerivation {
|
||||
name = "pyparsing-2.4.7";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz";
|
||||
sha256 = "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/pyparsing/pyparsing/";
|
||||
license = licenses.mit;
|
||||
description = "Python parsing module";
|
||||
};
|
||||
};
|
||||
|
||||
"pytz" = python.mkDerivation {
|
||||
name = "pytz-2020.1";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/f4/f6/94fee50f4d54f58637d4b9987a1b862aeb6cd969e73623e02c5c00755577/pytz-2020.1.tar.gz";
|
||||
sha256 = "c35965d010ce31b23eeb663ed3cc8c906275d6be1a34393a1d73a41febf4a048";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
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.24.0";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/da/67/672b422d9daf07365259958912ba533a0ecab839d4084c487a5fe9a5405f/requests-2.24.0.tar.gz";
|
||||
sha256 = "b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [
|
||||
self."certifi"
|
||||
self."chardet"
|
||||
self."idna"
|
||||
self."urllib3"
|
||||
];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://requests.readthedocs.io";
|
||||
license = licenses.asl20;
|
||||
description = "Python HTTP for Humans.";
|
||||
};
|
||||
};
|
||||
|
||||
"setuptools" = python.mkDerivation {
|
||||
name = "setuptools-49.1.0";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/8b/0f/5f135746c4d0c95fcc3c9a30ac942330bbdf092879ccaae7e3dcba6ea214/setuptools-49.1.0.zip";
|
||||
sha256 = "60351853f8c093ef57224695ee989d5d074168f6b93dae000fa9996072adaba3";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/pypa/setuptools";
|
||||
license = licenses.mit;
|
||||
description = "Easily download, build, install, upgrade, and uninstall Python packages";
|
||||
};
|
||||
};
|
||||
|
||||
"six" = python.mkDerivation {
|
||||
name = "six-1.15.0";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/6b/34/415834bfdafca3c5f451532e8a8d9ba89a21c9743a0c59fbd0205c7f9426/six-1.15.0.tar.gz";
|
||||
sha256 = "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/benjaminp/six";
|
||||
license = licenses.mit;
|
||||
description = "Python 2 and 3 compatibility utilities";
|
||||
};
|
||||
};
|
||||
|
||||
"snowballstemmer" = python.mkDerivation {
|
||||
name = "snowballstemmer-2.0.0";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/21/1b/6b8bbee253195c61aeaa61181bb41d646363bdaa691d0b94b304d4901193/snowballstemmer-2.0.0.tar.gz";
|
||||
sha256 = "df3bac3df4c2c01363f3dd2cfa78cce2840a79b9f1c2d2de9ce8d31683992f52";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "https://github.com/snowballstem/snowball";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "This package provides 26 stemmers for 25 languages generated from Snowball algorithms.";
|
||||
};
|
||||
};
|
||||
|
||||
"sphinx" = python.mkDerivation {
|
||||
name = "sphinx-3.1.2";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/4b/2b/84e00ab4c6103ebe38b3c1f0d574d46a7b8fb1dccb4d41a6ec0b9d15aacd/Sphinx-3.1.2.tar.gz";
|
||||
sha256 = "b9daeb9b39aa1ffefc2809b43604109825300300b987a24f45976c001ba1a8fd";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [
|
||||
self."alabaster"
|
||||
self."babel"
|
||||
self."docutils"
|
||||
self."imagesize"
|
||||
self."jinja2"
|
||||
self."packaging"
|
||||
self."pygments"
|
||||
self."requests"
|
||||
self."setuptools"
|
||||
self."snowballstemmer"
|
||||
self."sphinxcontrib-applehelp"
|
||||
self."sphinxcontrib-devhelp"
|
||||
self."sphinxcontrib-htmlhelp"
|
||||
self."sphinxcontrib-jsmath"
|
||||
self."sphinxcontrib-qthelp"
|
||||
self."sphinxcontrib-serializinghtml"
|
||||
];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://sphinx-doc.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "Python documentation generator";
|
||||
};
|
||||
};
|
||||
|
||||
"sphinxcontrib-applehelp" = python.mkDerivation {
|
||||
name = "sphinxcontrib-applehelp-1.0.2";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/9f/01/ad9d4ebbceddbed9979ab4a89ddb78c9760e74e6757b1880f1b2760e8295/sphinxcontrib-applehelp-1.0.2.tar.gz";
|
||||
sha256 = "a072735ec80e7675e3f432fcae8610ecf509c5f1869d17e2eecff44389cdbc58";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://sphinx-doc.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books";
|
||||
};
|
||||
};
|
||||
|
||||
"sphinxcontrib-devhelp" = python.mkDerivation {
|
||||
name = "sphinxcontrib-devhelp-1.0.2";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/98/33/dc28393f16385f722c893cb55539c641c9aaec8d1bc1c15b69ce0ac2dbb3/sphinxcontrib-devhelp-1.0.2.tar.gz";
|
||||
sha256 = "ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://sphinx-doc.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.";
|
||||
};
|
||||
};
|
||||
|
||||
"sphinxcontrib-htmlhelp" = python.mkDerivation {
|
||||
name = "sphinxcontrib-htmlhelp-1.0.3";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/c9/2e/a7a5fef38327b7f643ed13646321d19903a2f54b0a05868e4bc34d729e1f/sphinxcontrib-htmlhelp-1.0.3.tar.gz";
|
||||
sha256 = "e8f5bb7e31b2dbb25b9cc435c8ab7a79787ebf7f906155729338f3156d93659b";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://sphinx-doc.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files";
|
||||
};
|
||||
};
|
||||
|
||||
"sphinxcontrib-jsmath" = python.mkDerivation {
|
||||
name = "sphinxcontrib-jsmath-1.0.1";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/b2/e8/9ed3830aeed71f17c026a07a5097edcf44b692850ef215b161b8ad875729/sphinxcontrib-jsmath-1.0.1.tar.gz";
|
||||
sha256 = "a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://sphinx-doc.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "A sphinx extension which renders display math in HTML via JavaScript";
|
||||
};
|
||||
};
|
||||
|
||||
"sphinxcontrib-qthelp" = python.mkDerivation {
|
||||
name = "sphinxcontrib-qthelp-1.0.3";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/b1/8e/c4846e59f38a5f2b4a0e3b27af38f2fcf904d4bfd82095bf92de0b114ebd/sphinxcontrib-qthelp-1.0.3.tar.gz";
|
||||
sha256 = "4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://sphinx-doc.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.";
|
||||
};
|
||||
};
|
||||
|
||||
"sphinxcontrib-serializinghtml" = python.mkDerivation {
|
||||
name = "sphinxcontrib-serializinghtml-1.1.4";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/ac/86/021876a9dd4eac9dae0b1d454d848acbd56d5574d350d0f835043b5ac2cd/sphinxcontrib-serializinghtml-1.1.4.tar.gz";
|
||||
sha256 = "eaa0eccc86e982a9b939b2b82d12cc5d013385ba5eadcc7e4fed23f4405f77bc";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://sphinx-doc.org/";
|
||||
license = licenses.bsdOriginal;
|
||||
description = "sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized" HTML files (json and pickle).";
|
||||
};
|
||||
};
|
||||
|
||||
"tornado" = python.mkDerivation {
|
||||
name = "tornado-6.0.4";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/95/84/119a46d494f008969bf0c775cb2c6b3579d3c4cc1bb1b41a022aa93ee242/tornado-6.0.4.tar.gz";
|
||||
sha256 = "0fe2d45ba43b00a41cd73f8be321a44936dc1aba233dee979f17a042b83eb6dc";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
homepage = "http://www.tornadoweb.org/";
|
||||
license = licenses.asl20;
|
||||
description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.";
|
||||
};
|
||||
};
|
||||
|
||||
"urllib3" = python.mkDerivation {
|
||||
name = "urllib3-1.25.9";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://files.pythonhosted.org/packages/05/8c/40cd6949373e23081b3ea20d5594ae523e681b6f472e600fbc95ed046a36/urllib3-1.25.9.tar.gz";
|
||||
sha256 = "3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527";
|
||||
};
|
||||
doCheck = commonDoCheck;
|
||||
format = "setuptools";
|
||||
buildInputs = commonBuildInputs ++ [ ];
|
||||
propagatedBuildInputs = [ ];
|
||||
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.";
|
||||
};
|
||||
};
|
||||
};
|
||||
localOverridesFile = ./requirements_override.nix;
|
||||
localOverrides = import localOverridesFile { inherit pkgs python; };
|
||||
commonOverrides = [
|
||||
(let src = pkgs.fetchFromGitHub { owner = "nix-community"; repo = "pypi2nix-overrides"; rev = "90e891e83ffd9e55917c48d24624454620d112f0"; sha256 = "0cl1r3sxibgn1ks9xyf5n3rdawq4hlcw4n6xfhg3s1kknz54jp9y"; } ; in import "${src}/overrides.nix" { inherit pkgs python; })
|
||||
];
|
||||
paramOverrides = [
|
||||
(overrides { inherit pkgs python; })
|
||||
];
|
||||
allOverrides =
|
||||
(if (builtins.pathExists localOverridesFile)
|
||||
then [localOverrides] else [] ) ++ commonOverrides ++ paramOverrides;
|
||||
|
||||
in python.withPackages
|
||||
(fix' (pkgs.lib.fold
|
||||
extends
|
||||
generated
|
||||
allOverrides
|
||||
)
|
||||
)
|
@ -1,5 +1,4 @@
|
||||
# After updating run:
|
||||
# nix-shell -p pypi2nix --run "pypi2nix -r requirements.txt"
|
||||
sphinx==4.0.1
|
||||
alabaster==0.7.12
|
||||
livereload==2.6.3
|
||||
livereload==2.6.3
|
||||
sphinx-copybutton==0.3.1
|
||||
|
@ -1,5 +0,0 @@
|
||||
{ pkgs, python }:
|
||||
|
||||
self: super: {
|
||||
|
||||
}
|
12
shell.nix
Normal file
12
shell.nix
Normal file
@ -0,0 +1,12 @@
|
||||
let
|
||||
mach-nix = import (builtins.fetchGit {
|
||||
url = "https://github.com/DavHau/mach-nix/";
|
||||
ref = "refs/tags/3.2.0";
|
||||
}) {
|
||||
pypiDataRev = "15175225c8295e08e5b95b2965892820a64e9746";
|
||||
pypiDataSha256 = "00f87qsdg312iy5f47vr3jjw1jd3d0j89n6zmja536im5f1qzrs9";
|
||||
};
|
||||
in
|
||||
mach-nix.mkPythonShell {
|
||||
requirements = builtins.readFile ./requirements.txt;
|
||||
}
|
@ -32,9 +32,13 @@ from datetime import date
|
||||
# ones.
|
||||
extensions = [
|
||||
'sphinx.ext.intersphinx',
|
||||
'sphinx.ext.todo'
|
||||
'sphinx.ext.todo',
|
||||
'sphinx_copybutton'
|
||||
]
|
||||
|
||||
copybutton_prompt_text = r"# |\$ "
|
||||
copybutton_prompt_is_regexp = True
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user