{ "info": { "author": "Alexander Sosedkin", "author_email": "monk@unboiled.info", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only" ], "description": "# nixpkgs-python-importer\n\n## What\n\nAn importlib hack that allows `from nixpkgs.pythonpackagename import modulename`.\n\nExamples:\n\n from nixpkgs.scipy import scipy\n import nixpkgs.scipy.scipy\n from nixpkgs.matplotlib.matplotlib import pyplot as plt\n import nixpkgs.matplotlib.matplotlib.pyplot as plt\n from nixpkgs.pillow.PIL import Image\n\n\n## Why\n\nI used to be a researcher who used `python` and `xonsh` interactively a lot.\nWhile I appreciate the purity of Nix, sometimes I really want to violate it\nand pull in some dependency into my shell *right now*,\nwithout tearing my session down, editing and rebuilding an environment,\nand then recreating my session from history.\n\nA convenient way of spawning a `xonsh` instance with an extra dependency\nsoothes the nerves a bit, but doesn't really free me from the recreation part.\n\nI started writing a `xonsh` macro that ended up being a generic Python solution\nwith a pleasingly nice syntax. I mean, `from nixpkgs.scipy import scipy`.\nAin't that nice?\n\n\n## How\n\n`importlib` magic\n\n\n## Try\n\nThe quickest way to try it would be (on a recent NixOS):\n\n```\nnix run -f '(import {}).python3.withPackages(ps:[ps.nixpkgs])' -c python\n```\nthen try `from nixpkgs.pbr import pbr` (or any other package).\n\n\nIf that doesn't work, you may also try your luck with unstable nixpkgs:\n\n```\nnix run -f channel:nixos-unstable '(import {}).python3.withPackages(ps:[ps.nixpkgs])' -c python\n```", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/t184256/nixpkgs-python-importer", "keywords": "nix,nixos,nixpkgs,importlib", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nixpkgs", "package_url": "https://pypi.org/project/nixpkgs/", "platform": "", "project_url": "https://pypi.org/project/nixpkgs/", "project_urls": { "Homepage": "https://github.com/t184256/nixpkgs-python-importer" }, "release_url": "https://pypi.org/project/nixpkgs/0.2.4/", "requires_dist": null, "requires_python": "", "summary": "Abuses Nix philosophy, allowing me to do `from nixpkgs import scipy` anytime", "version": "0.2.4" }, "last_serial": 5574693, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "08b9ddaa39884cde014f83d2164e735f", "sha256": "7e5341741b96a03077b927ac9ffbe328b84f47aa25b83dcdff8b9d56023c0e81" }, "downloads": -1, "filename": "nixpkgs-0.1.0.tar.gz", "has_sig": false, "md5_digest": "08b9ddaa39884cde014f83d2164e735f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3716, "upload_time": "2018-09-21T10:07:35", "url": "https://files.pythonhosted.org/packages/56/e3/70e8413041184883a080f11e19220c5bc551982a8bba6e9e61d74c90d271/nixpkgs-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0df2b1cbca8d3b4b70ef1aeb1fa48e19", "sha256": "857eb0b2f34995a8253aafd66f076128a87f1f4776807b1ec9580fea2cd0ca9f" }, "downloads": -1, "filename": "nixpkgs-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0df2b1cbca8d3b4b70ef1aeb1fa48e19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4046, "upload_time": "2018-09-22T14:12:43", "url": "https://files.pythonhosted.org/packages/34/b2/285ba2431aa68c2db271fa59cf5a8730181c38f41fdf993922e0c6800dc1/nixpkgs-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f246289fdb8fe35b919d346570fba5ea", "sha256": "1e999fa44ee264170d51e9e75ba1994363ef65bf45e4fadefdf0ee79e9554520" }, "downloads": -1, "filename": "nixpkgs-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f246289fdb8fe35b919d346570fba5ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4891, "upload_time": "2018-09-24T12:28:17", "url": "https://files.pythonhosted.org/packages/99/f3/b222766f5fc24e413c45564c34f9be0b2222448e962eb19e09296a6ad651/nixpkgs-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "cce3369524df6aa329a260d4facd9efb", "sha256": "26ddfc4619aa2467d2f035ab06e3c17310d98abcc4254e1de60f4109ec982d77" }, "downloads": -1, "filename": "nixpkgs-0.2.1.tar.gz", "has_sig": false, "md5_digest": "cce3369524df6aa329a260d4facd9efb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5510, "upload_time": "2018-09-27T16:52:44", "url": "https://files.pythonhosted.org/packages/d2/08/9e2eaf88a178c77ba92b231f2bf9f41d3b621c3599cf2d99f98aa34f23aa/nixpkgs-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "b460fbda302e03378a54f8b928046786", "sha256": "d299d68638ffda47763184c0bd536c96ffa0edf993c101b39629ed39536a593f" }, "downloads": -1, "filename": "nixpkgs-0.2.2.tar.gz", "has_sig": false, "md5_digest": "b460fbda302e03378a54f8b928046786", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5537, "upload_time": "2018-09-28T04:41:12", "url": "https://files.pythonhosted.org/packages/e4/fc/dd751c376f2e133609a069bd971fa34927d165cbf2459dfb5c44f3b44c94/nixpkgs-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "a048e4c6dfe7fed3546bdd9fd57fcd8b", "sha256": "7633e90303ca12b3fe9d593bfcf7a346800e6141cb418315091b9317c65ecc8b" }, "downloads": -1, "filename": "nixpkgs-0.2.3.tar.gz", "has_sig": false, "md5_digest": "a048e4c6dfe7fed3546bdd9fd57fcd8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5496, "upload_time": "2019-04-11T05:31:58", "url": "https://files.pythonhosted.org/packages/c1/57/17ec8343513314bfc954c5cdb7098fcba9d0433bf284e316cd394ad48d8e/nixpkgs-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "5cc2bf7dd6020e9c763f071849dd083e", "sha256": "6d5b50d7937b78c3c2724d89fadaa55dbbde01a35c106090da14567517c19b36" }, "downloads": -1, "filename": "nixpkgs-0.2.4.tar.gz", "has_sig": false, "md5_digest": "5cc2bf7dd6020e9c763f071849dd083e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5838, "upload_time": "2019-07-23T22:00:14", "url": "https://files.pythonhosted.org/packages/b5/dd/ae4ca71cf62847421ea775317ff18a8e9b4813c49c5dc3f331a79e644c3b/nixpkgs-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5cc2bf7dd6020e9c763f071849dd083e", "sha256": "6d5b50d7937b78c3c2724d89fadaa55dbbde01a35c106090da14567517c19b36" }, "downloads": -1, "filename": "nixpkgs-0.2.4.tar.gz", "has_sig": false, "md5_digest": "5cc2bf7dd6020e9c763f071849dd083e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5838, "upload_time": "2019-07-23T22:00:14", "url": "https://files.pythonhosted.org/packages/b5/dd/ae4ca71cf62847421ea775317ff18a8e9b4813c49c5dc3f331a79e644c3b/nixpkgs-0.2.4.tar.gz" } ] }