mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
33 lines
653 B
Nix
33 lines
653 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, pythonOlder
|
||
|
, fetchPypi
|
||
|
, poetry-core
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "generic";
|
||
|
version = "1.0.1";
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
format = "pyproject";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "sha256-ex93I+ofo5lP6qoolZwzjxSspeqJimY3vpB32RLJ00k=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
poetry-core
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "generic" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Generic programming (Multiple dispatch) library for Python";
|
||
|
maintainers = with maintainers; [ wolfangaukang ];
|
||
|
homepage = "https://github.com/gaphor/generic";
|
||
|
license = licenses.bsdOriginal;
|
||
|
};
|
||
|
}
|