Martin Weinelt ae4a1a485a
treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

37 lines
684 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
isPy3k,
future,
}:
buildPythonPackage rec {
pname = "ecpy";
version = "1.2.5";
format = "setuptools";
src = fetchPypi {
pname = "ECPy";
inherit version;
sha256 = "9635cffb9b6ecf7fd7f72aea1665829ac74a1d272006d0057d45a621aae20228";
};
prePatch = ''
sed -i "s|reqs.append('future')|pass|" setup.py
'';
propagatedBuildInputs = lib.optional (!isPy3k) future;
# No tests implemented
doCheck = false;
pythonImportsCheck = [ "ecpy" ];
meta = with lib; {
description = "Pure Pyhton Elliptic Curve Library";
homepage = "https://github.com/ubinity/ECPy";
license = licenses.asl20;
};
}