depot/third_party/nixpkgs/pkgs/development/python-modules/ecpy/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

29 lines
648 B
Nix

{ lib, fetchPypi, buildPythonPackage, isPy3k, future }:
buildPythonPackage rec {
pname = "ecpy";
version = "1.2.5";
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;
};
}