1{ lib, buildPythonPackage, fetchPypi }:
2
3buildPythonPackage rec {
4 pname = "labmath";
5 version = "1.2.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "sha256-/fZ61tJ6PVZsubr3OXlbg/VxyyKimz36uPV+r33kgD0=";
10 };
11
12 postPatch = ''
13 substituteInPlace setup.py --replace "labmath/DESCRIPTION.rst" "PKG-INFO"
14 '';
15
16 pythonImportsCheck = [ "labmath" ];
17
18 meta = with lib; {
19 homepage = "https://pypi.org/project/labmath";
20 description = "Module for basic math in the general vicinity of computational number theory";
21 license = licenses.mit;
22 maintainers = with maintainers; [ siraben ];
23 };
24}