Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / random2 / default.nix
blobee289b906d343b1f6f36aa8d04539c8c1f3f0c90
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPyPy
5 , fetchpatch
6 }:
8 buildPythonPackage rec {
9   pname = "random2";
10   version = "1.0.1";
11   format = "setuptools";
12   doCheck = !isPyPy;
14   src = fetchPypi {
15     inherit pname version;
16     extension = "zip";
17     sha256 = "34ad30aac341039872401595df9ab2c9dc36d0b7c077db1cea9ade430ed1c007";
18   };
20   patches = [
21     # Patch test suite for python >= 3.9
22     (fetchpatch {
23       url = "https://github.com/strichter/random2/pull/3/commits/1bac6355d9c65de847cc445d782c466778b94fbd.patch";
24       sha256 = "064137pg1ilv3f9r10123lqbqz45070jca8pjjyp6gpfd0yk74pi";
25     })
26   ];
28   meta = with lib; {
29     homepage = "http://pypi.python.org/pypi/random2";
30     description = "Python 3 compatible Python 2 `random` Module";
31     license = licenses.psfl;
32   };