pythonPackages.random2: refactor move to python-modules
This commit is contained in:
parent
1543d06a67
commit
c38f4d6407
24
pkgs/development/python-modules/random2/default.nix
Normal file
24
pkgs/development/python-modules/random2/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPyPy
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "random2";
|
||||||
|
version = "1.0.1";
|
||||||
|
doCheck = !isPyPy;
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
extension = "zip";
|
||||||
|
sha256 = "34ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = http://pypi.python.org/pypi/random2;
|
||||||
|
description = "Python 3 compatible Python 2 `random` Module";
|
||||||
|
license = licenses.psfl;
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2169,16 +2169,7 @@ in {
|
|||||||
|
|
||||||
pyrtlsdr = callPackage ../development/python-modules/pyrtlsdr { };
|
pyrtlsdr = callPackage ../development/python-modules/pyrtlsdr { };
|
||||||
|
|
||||||
random2 = self.buildPythonPackage rec {
|
random2 = callPackage ../development/python-modules/random2 { };
|
||||||
name = "random2-1.0.1";
|
|
||||||
|
|
||||||
doCheck = !isPyPy;
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/r/random2/${name}.zip";
|
|
||||||
sha256 = "34ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
scandir = callPackage ../development/python-modules/scandir { };
|
scandir = callPackage ../development/python-modules/scandir { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user