290a5d916e
Based on "problems" from repology: https://repology.org/repository/nix_unstable/problems Mostly simple changes to reflect redirects.
39 lines
987 B
Nix
39 lines
987 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchpatch
|
|
, fetchPypi
|
|
, pbr
|
|
, pythonix
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nixpkgs";
|
|
version = "0.2.2";
|
|
disabled = ! pythonAtLeast "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0gsrd99kkv99jsrh3hckz7ns1zwndi9vvh4465v4gnpz723dd6fj";
|
|
};
|
|
|
|
patches = [
|
|
# Patch should be dropped once https://github.com/t184256/nixpkgs-python-importer/pull/7
|
|
# is merged and in a release
|
|
(fetchpatch {
|
|
url = "https://github.com/adisbladis/nixpkgs-python-importer/commit/749e05f1.patch";
|
|
sha256 = "1a72phazpqf6vf3hl3m84z9i5n6h1xpa53bqxnpsff6agxxhd21b";
|
|
})
|
|
];
|
|
|
|
buildInputs = [ pbr ];
|
|
propagatedBuildInputs = [ pythonix ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Allows to `from nixpkgs import` stuff in interactive Python sessions";
|
|
homepage = https://github.com/t184256/nixpkgs-python-importer;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ t184256 ];
|
|
};
|
|
|
|
}
|