Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
749 B · 35 lines
Nix
123456789101112131415161718192021222324252627282930313233343536{ lib, buildPythonPackage, fetchFromGitHub, setuptools, python,}:
buildPythonPackage rec { pname = "attr"; version = "0.3.2"; pyproject = true;
src = fetchFromGitHub { owner = "denis-ryzhkov"; repo = "attr"; rev = version; hash = "sha256-1gOAONDuZb7xEPFZJc00BRtFF06uX65S8b3RRRNGeSo="; };
build-system = [ setuptools ];
checkPhase = '' runHook preCheck ${python.interpreter} -c "import dry_attr; dry_attr.test()" runHook postCheck '';
meta = { description = "Simple decorator to set attributes of target function or class in a DRY way"; homepage = "https://github.com/denis-ryzhkov/attr"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ pyrox0 ]; };}