python3Packages.bencode-py: migrate to pyproject (#528730)
This commit is contained in:
@@ -2,23 +2,29 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
pbr,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "beconde-py";
|
||||
version = "4.0.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
inherit (finalAttrs) version;
|
||||
pname = "bencode.py";
|
||||
hash = "sha256-KiTM2hclpRplCJPQtjJgE4NZ6qKZu256CZYTUKKm4Fw=";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [ "bencodepy" ];
|
||||
build-system = [
|
||||
setuptools
|
||||
pbr
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pbr ];
|
||||
pythonImportsCheck = [ "bencodepy" ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
@@ -28,4 +34,4 @@ buildPythonPackage rec {
|
||||
license = lib.licenses.bitTorrent11;
|
||||
maintainers = with lib.maintainers; [ vamega ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user