mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
Merge pull request #192648 from SuperSandro2000/cpython-docs-cleanup
pythonDocs: bring back pname+version, allow script to be executed fro…
This commit is contained in:
commit
085f93ddc6
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python27-docs-html-2.7.18";
|
||||
pname = "python27-docs-html";
|
||||
version = "2.7.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/2.7.18/python-2.7.18-docs-html.tar.bz2;
|
||||
sha256 = "03igxwpqc2lvzspnj78zz1prnmfwwj00jbvh1wsxvb0wayd5wi10";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python27-docs-pdf-a4-2.7.18";
|
||||
pname = "python27-docs-pdf-a4";
|
||||
version = "2.7.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/2.7.18/python-2.7.18-docs-pdf-a4.tar.bz2;
|
||||
sha256 = "0rxb2fpxwivjpk5wi2pl1fqibr4khf9s0yq6a49k9b4awi9nkb6v";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python27-docs-pdf-letter-2.7.18";
|
||||
pname = "python27-docs-pdf-letter";
|
||||
version = "2.7.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/2.7.18/python-2.7.18-docs-pdf-letter.tar.bz2;
|
||||
sha256 = "07hbqvrdlq01cb95r1574bxqqhiqbkj4f92wzlq4d6dq1l272nan";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python27-docs-text-2.7.18";
|
||||
pname = "python27-docs-text";
|
||||
version = "2.7.18";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/2.7.18/python-2.7.18-docs-text.tar.bz2;
|
||||
sha256 = "1wj7mxs52kp5lmn5mvv574sygkfnk00kbz9ya9c03yfq5dd5nvy8";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python310-docs-html-3.10.7";
|
||||
pname = "python310-docs-html";
|
||||
version = "3.10.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/3.10.7/python-3.10.7-docs-html.tar.bz2;
|
||||
sha256 = "0j86z1vmaghzj5i4frvzyfb9qwsmm09g4f4ssx5w27cm30b8k0v1";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python310-docs-pdf-a4-3.10.7";
|
||||
pname = "python310-docs-pdf-a4";
|
||||
version = "3.10.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/3.10.7/python-3.10.7-docs-pdf-a4.tar.bz2;
|
||||
sha256 = "1gvi457dsj3ywwvxysp7idkk9ndngnby1dnfh1q8f5gv3kg4093r";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python310-docs-pdf-letter-3.10.7";
|
||||
pname = "python310-docs-pdf-letter";
|
||||
version = "3.10.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/3.10.7/python-3.10.7-docs-pdf-letter.tar.bz2;
|
||||
sha256 = "0hzq5n6absqsh21jp6j5iaim9a1wq69d8lc2assldzb2zg4i75hr";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python310-docs-texinfo-3.10.7";
|
||||
pname = "python310-docs-texinfo";
|
||||
version = "3.10.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/3.10.7/python-3.10.7-docs-texinfo.tar.bz2;
|
||||
sha256 = "0p0fifi84ijz4ng6krw7c1x965jhgysprkijblmlnax7x9rmqrdf";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python310-docs-text-3.10.7";
|
||||
pname = "python310-docs-text";
|
||||
version = "3.10.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.python.org/ftp/python/doc/3.10.7/python-3.10.7-docs-text.tar.bz2;
|
||||
sha256 = "1zbmm2fvdjnl214y41yffyqw3ywfai5r5npc00n1wkfxsdp7gcc3";
|
||||
|
@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
|
||||
|
||||
TYPES="html pdf-a4 pdf-letter text texinfo"
|
||||
URL=http://www.python.org/ftp/python/doc/VERSION/python-VERSION-docs-TYPE.tar.bz2
|
||||
VERSIONS=$(for major in 2 3; do curl https://docs.python.org/$major/archives/ 2>/dev/null | perl -l -n -e'/<a href="python-([23].[0-9]+.[0-9]+)-docs-html.tar.bz2/ && print $1' | tail -n 1; done)
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pythonMAJORMINOR-docs-TYPE-VERSION";
|
||||
pname = "pythonMAJORMINOR-docs-TYPE";
|
||||
version = "VERSION";
|
||||
|
||||
src = fetchurl {
|
||||
url = URL;
|
||||
sha256 = "SHA";
|
||||
|
@ -3,7 +3,9 @@
|
||||
{ stdenv, fetchurl, lib }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pythonMAJORMINOR-docs-TYPE-VERSION";
|
||||
pname = "pythonMAJORMINOR-docs-TYPE";
|
||||
version = "VERSION";
|
||||
|
||||
src = fetchurl {
|
||||
url = URL;
|
||||
sha256 = "SHA";
|
||||
|
Loading…
Reference in New Issue
Block a user